Last chance! 50% off unlimited learning
Sale ends in
Set new names of some attributes in a dimension.
rename_dimension_attributes(st, name, attributes, new_names)# S3 method for star_schema
rename_dimension_attributes(st, name, attributes, new_names)
A star_schema
object.
A star_schema
object.
A string, name of the dimension.
A vector of attribute names.
A vector of new attribute names.
Other rename functions:
get_dimension_attribute_names()
,
get_measure_names()
,
rename_dimension()
,
rename_fact()
,
rename_measures()
st <-
st_mrs_age |> rename_dimension_attributes(
name = "when",
attributes = c("week", "year"),
new_names = c("w", "y")
)
Run the code above in your browser using DataLab