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)
# S3 method for star_schema rename_dimension_attributes(st, name, attributes, new_names)
A star_schema object.
star_schema
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()
get_dimension_attribute_names()
get_measure_names()
rename_dimension()
rename_fact()
rename_measures()
# NOT RUN { library(tidyr) 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