get_table_attribute_names: Get table attribute names

View source: R/generate.R

get_table_attribute_namesR Documentation

Get table attribute names

Description

Returns the names of the dimension table attributes as a string vector or in string form, so we can easily use it to rename them if deemed necessary.

Usage

get_table_attribute_names(td, as_string)

## S3 method for class 'when'
get_table_attribute_names(td, as_string = TRUE)

Arguments

td

A when object.

as_string

A boolean.

Details

If the table has not been generated yet, returns the attributes it will contain when it is generated.

Value

A string.

See Also

Other obtaining results: generate_table(), get_level_attribute_names(), get_level_names(), set_table_attribute_names()

Examples


names <- when() |>
  get_table_attribute_names()


when documentation built on May 29, 2024, 5:01 a.m.