get_level_names {when}R Documentation

Get level names

Description

Returns the names of the levels. We can obtain all the available ones or only the selected ones.

Usage

get_level_names(td, selected)

## S3 method for class 'when'
get_level_names(td, selected = FALSE)

Arguments

td

A when object.

selected

A boolean.

Value

A string vector.

See Also

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

Examples


names <- when() |>
  get_level_names()


[Package when version 1.0.0 Index]