View source: R/star_schema_rename.R
rename_dimension_attributes | R Documentation |
Set new names of some attributes in a dimension.
rename_dimension_attributes(st, name, attributes, new_names)
## S3 method for class 'star_schema'
rename_dimension_attributes(st, name, attributes, new_names)
st |
A |
name |
A string, name of the dimension. |
attributes |
A vector of attribute names. |
new_names |
A vector of new attribute names. |
A star_schema
object.
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")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.