Transform names according to the snake case style
Source:R/flat_table.R
, R/generic.R
, R/star_database.R
snake_case.Rd
For flat tables, transform attribute and measure names according to the snake case style. For star databases, transform fact, dimension, measures, and attribute names according to the snake case style.
Usage
# S3 method for flat_table
snake_case(db)
snake_case(db)
# S3 method for star_database
snake_case(db)
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()
,
get_unique_attribute_values.flat_table()
,
replace_attribute_values.flat_table()
,
set_attribute_names.flat_table()
,
set_measure_names.flat_table()
Examples
db <- star_database(mrs_cause_schema, ft_num) |>
snake_case()
ft <- flat_table('iris', iris) |>
snake_case()