rename_measures {starschemar} | R Documentation |
Rename measures
Description
Set new names of some measures in facts.
Usage
rename_measures(st, measures, new_names)
## S3 method for class 'star_schema'
rename_measures(st, measures, new_names)
Arguments
st |
A |
measures |
A vector of measure names. |
new_names |
A vector of new measure names. |
Value
A star_schema
object.
See Also
Other rename functions:
get_dimension_attribute_names()
,
get_measure_names()
,
rename_dimension()
,
rename_dimension_attributes()
,
rename_fact()
Examples
st <-
st_mrs_age |> rename_measures(measures = c("deaths"),
new_names = c("n_deaths"))
[Package starschemar version 1.2.5 Index]