View source: R/star_schema_snake_case.R
| snake_case | R Documentation | 
Transform fact, dimension, measurement, and attribute names according to the snake case style.
snake_case(st)
## S3 method for class 'star_schema'
snake_case(st)
| st | A  | 
This style is suitable if we are going to work with databases.
A star_schema object.
Other star schema and constellation definition functions: 
character_dimensions(),
constellation(),
role_playing_dimension(),
star_schema()
st <- star_schema(mrs_age, dm_mrs_age) |>
  snake_case()
st <- star_schema(mrs_age, dm_mrs_age) |>
  role_playing_dimension(
    dim_names = c("when", "when_available"),
    name = "When Common",
    attributes = c("Date", "Week", "Year")
  ) |>
  snake_case()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.