rename_measures: Rename measures

View source: R/star_schema_rename.R

rename_measuresR 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 star_schema object.

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"))


josesamos/starschemar documentation built on May 6, 2024, 5:57 a.m.