rename_dimension: Rename dimension

Description Usage Arguments Value See Also Examples

View source: R/star_schema_rename.R

Description

Set new name for a dimension.

Usage

1
2
3
4
rename_dimension(st, name, new_name)

## S3 method for class 'star_schema'
rename_dimension(st, name, new_name)

Arguments

st

A star_schema object.

name

A string, name of the dimension.

new_name

A string, new name of the dimension.

Value

A star_schema object.

See Also

Other rename functions: get_dimension_attribute_names(), get_measure_names(), rename_dimension_attributes(), rename_fact(), rename_measures()

Examples

1
2
3
4
library(tidyr)

st <- st_mrs_age %>%
  rename_dimension(name = "when", new_name = "when_happened")

starschemar documentation built on Jan. 13, 2021, 7:33 p.m.