Get the names of the primary key attributes of a flat table
Source:R/flat_table_join.R
get_pk_attribute_names.Rd
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 flat_table
get_pk_attribute_names(ft, as_definition = FALSE)
See also
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()