View source: R/star_schema_rename.R
| rename_measures | R Documentation | 
Set new names of some measures in facts.
rename_measures(st, measures, new_names)
## S3 method for class 'star_schema'
rename_measures(st, measures, new_names)
st | 
 A   | 
measures | 
 A vector of measure names.  | 
new_names | 
 A vector of new measure names.  | 
A star_schema object.
Other rename functions: 
get_dimension_attribute_names(),
get_measure_names(),
rename_dimension(),
rename_dimension_attributes(),
rename_fact()
st <-
  st_mrs_age |> rename_measures(measures = c("deaths"),
                                 new_names = c("n_deaths"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.