starschemar (version 1.2.0)

enrich_dimension_export: Export selected attributes of a dimension

Description

Export the selected attributes of a dimension, without repeated combinations, to enrich the dimension.

Usage

enrich_dimension_export(st, name = NULL, attributes = NULL)

# S3 method for star_schema enrich_dimension_export(st, name = NULL, attributes = NULL)

Arguments

st

A star_schema object.

name

A string, name of the dimension.

attributes

A vector of attribute names.

Value

A tibble object.

Details

If it is a role dimension they cannot be exported, you have to work with the associated role playing dimension.

See Also

Other dimension enrichment functions: enrich_dimension_import_test(), enrich_dimension_import()

Examples

Run this code
# NOT RUN {
library(tidyr)

tb <-
  enrich_dimension_export(st_mrs_age,
                          name = "when_common",
                          attributes = c("week", "year"))

# }

Run the code above in your browser using DataLab