powered by
Set new name for a dimension.
rename_dimension(st, name, new_name)# S3 method for star_schema rename_dimension(st, name, new_name)
# S3 method for star_schema rename_dimension(st, name, new_name)
A star_schema object.
star_schema
A string, name of the dimension.
A string, new name of the dimension.
Other rename functions: get_dimension_attribute_names(), get_measure_names(), rename_dimension_attributes(), rename_fact(), rename_measures()
get_dimension_attribute_names()
get_measure_names()
rename_dimension_attributes()
rename_fact()
rename_measures()
st <- st_mrs_age |> rename_dimension(name = "when", new_name = "when_happened")
Run the code above in your browser using DataLab