
Get unique attribute values
Source:R/flat_table.R
, R/generic.R
, R/star_database.R
get_unique_attribute_values.Rd
Get unique set of values for the given attributes. If no attributes are indicated, all are considered.
Usage
# S3 method for class 'flat_table'
get_unique_attribute_values(
db,
name = NULL,
attributes = NULL,
col_as_vector = NULL
)
get_unique_attribute_values(db, name, attributes, col_as_vector)
# S3 method for class 'star_database'
get_unique_attribute_values(
db,
name = NULL,
attributes = NULL,
col_as_vector = NULL
)
See also
Other star database and flat table functions:
get_attribute_names.flat_table()
,
get_measure_names.flat_table()
,
get_similar_attribute_values.flat_table()
,
get_similar_attribute_values_individually.flat_table()
,
replace_attribute_values.flat_table()
,
set_attribute_names.flat_table()
,
set_measure_names.flat_table()
,
snake_case.flat_table()
Examples
instances <- star_database(mrs_cause_schema, ft_num) |>
get_unique_attribute_values()
instances <- star_database(mrs_cause_schema, ft_num) |>
get_unique_attribute_values(name = "where")
instances <- star_database(mrs_cause_schema, ft_num) |>
get_unique_attribute_values("where",
attributes = c("REGION", "State"))
instances <- flat_table('iris', iris) |>
get_unique_attribute_values()