rename_dimension: Rename dimension

View source: R/star_schema_rename.R

rename_dimensionR Documentation

Rename dimension

Description

Set new name for a dimension.

Usage

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


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


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