Learn R Programming

rolap (version 2.5.1)

snake_case.flat_table: Transform names according to the snake case style

Description

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)

Value

A flat_table or star_database object.

Arguments

db

A flat_table or star_database object.

Details

This style is suitable if we are going to work with databases.

See Also

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_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

Run this code

db <- star_database(mrs_cause_schema, ft_num) |>
  snake_case()

ft <- flat_table('iris', iris) |>
  snake_case()

Run the code above in your browser using DataLab