Learn R Programming

rolap (version 2.5.1)

get_attribute_names.flat_table: Get the names of the attributes

Description

Obtain the names of the attributes in a flat table or a dimension in a star database.

Usage

# S3 method for flat_table
get_attribute_names(db, name = NULL, ordered = FALSE, as_definition = FALSE)

get_attribute_names(db, name, ordered, as_definition)

# S3 method for star_database get_attribute_names(db, name, ordered = FALSE, as_definition = FALSE)

Value

A vector of strings or a string, attribute names.

Arguments

db

A flat_table or star_database object.

name

A string, dimension name.

ordered

A boolean, sort names alphabetically.

as_definition

A boolean, get the names as a vector definition in R.

Details

If indicated, names can be obtained in alphabetical order or as a vector definition in R

See Also

star_database, flat_table

Other star database and flat table functions: get_measure_names.flat_table(), get_similar_attribute_values.flat_table(), get_similar_attribute_values_individually.flat_table(), get_unique_attribute_values.flat_table(), replace_attribute_values.flat_table(), set_attribute_names.flat_table(), set_measure_names.flat_table(), snake_case.flat_table()

Examples

Run this code

names <- star_database(mrs_cause_schema, ft_num) |>
  get_attribute_names(name = "where")

names <- flat_table('iris', iris) |>
  get_attribute_names()

Run the code above in your browser using DataLab