get_pk_attribute_names: Get the names of the primary key attributes of a flat table

View source: R/flat_table_join.R

get_pk_attribute_namesR Documentation

Get the names of the primary key attributes of a flat table

Description

Obtain the names of the attributes that form the primary key of a flat table, if defined.

Usage

get_pk_attribute_names(ft, as_definition)

## S3 method for class 'flat_table'
get_pk_attribute_names(ft, as_definition = FALSE)

Arguments

ft

A flat_table object.

as_definition

A boolean, as the definition of the vector in R.

Value

A vector of strings or a tibble, attribute names.

See Also

flat_table

Other flat table join functions: check_lookup_table(), join_lookup_table(), lookup_table()

Examples


ft <- flat_table('iris', iris) |>
  lookup_table(
    measures = c("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width"),
    measure_agg = c('MAX', 'MIN', 'SUM', 'MEAN')
  )
names <- ft |>
  get_pk_attribute_names()


rolap documentation built on May 29, 2024, 10:38 a.m.