Description Usage Arguments Value See Also Examples
View source: R/star_schema_rename.R
Set new names of some measures in facts.
1 2 3 4 | 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_attributes()
,
rename_dimension()
,
rename_fact()
1 2 3 4 5 | library(tidyr)
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.