get_similar_attribute_values_individually.flat_table | R Documentation |
Get sets of attribute values for individual attributes that differ only by tildes, spaces, or punctuation marks. If no attributes are indicated, all are considered.
## S3 method for class 'flat_table'
get_similar_attribute_values_individually(
db,
name = NULL,
attributes = NULL,
exclude_numbers = FALSE,
col_as_vector = NULL
)
get_similar_attribute_values_individually(
db,
name,
attributes,
exclude_numbers,
col_as_vector
)
## S3 method for class 'star_database'
get_similar_attribute_values_individually(
db,
name = NULL,
attributes = NULL,
exclude_numbers = FALSE,
col_as_vector = NULL
)
db |
A |
name |
A vector of strings, dimension names. |
attributes |
A vector of strings, attribute names. |
exclude_numbers |
A boolean, exclude numbers from comparison. |
col_as_vector |
A string, name of the column to include a vector of values. |
For star databases, if no dimension name is indicated, all dimensions are considered.
You can indicate that the numbers are ignored to make the comparison.
If a name is indicated in the col_as_vector
parameter, it includes a column
with the data in vector form to be used in other functions.
A vector of tibble
objects with similar instances.
star_database
, flat_table
Other star database and flat table functions:
get_attribute_names.flat_table()
,
get_measure_names.flat_table()
,
get_similar_attribute_values.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()
instances <- star_database(mrs_cause_schema, ft_num) |>
get_similar_attribute_values_individually(name = c("where", "when"))
instances <- star_database(mrs_cause_schema, ft_num) |>
get_similar_attribute_values_individually()
ft <- flat_table('iris', iris)
ft$table$Species[20] <- "se.Tosa."
ft$table$Species[60] <- "Versicolor"
instances <- ft |>
get_similar_attribute_values_individually()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.