Skip to contents

Set new names of some measures in facts.

Usage

rename_measures(st, measures, new_names)

# S3 method for 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.

Examples


st <-
  st_mrs_age |> rename_measures(measures = c("deaths"),
                                 new_names = c("n_deaths"))