get_table_attribute_names {when}R 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()


[Package when version 1.0.0 Index]