Generic function, for renaming attributes present in a database-like structure.
Arguments
- x
an object with an
attrs_order
attribute. This includes relational schema objects, such as arelation_schema
ordatabase_schema
object, relational data objects, such as arelation
ordatabase
object, andfunctional_dependency
objects.- names
a character vector of the same length as
attrs_order(x)
, with no duplicated elements, to be used as the new attribute names.- ...
further arguments passed on to methods.
Value
A relational object of the same type as x
, with attributes
renamed consistently across the whole object.
Details
This function has a different intended use to re-assigning
attrs_order
: that is intended only for rearranging the order of
the attributes, without renaming them. This is intended for renaming the
attributes without re-ordering them.