Skip to contents

Set new name for a dimension.

Usage

rename_dimension(st, name, new_name)

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

Examples


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