Definition of schemas for facts and dimensions for the Mortality Reporting System considering the age classification.
Details
Dimension schemes can be defined using variables so that you do not have to repeat the definition in several multidimensional designs.
See also
Other mrs example schema:
mrs_age_schema_rpd
,
mrs_cause_schema_rpd
,
mrs_cause_schema
Examples
# Defined by:
when <- dimension_schema(name = "When",
attributes = c("Year"))
where <- dimension_schema(name = "Where",
attributes = c("REGION",
"State",
"City"))
mrs_age_schema <- star_schema() |>
define_facts(name = "MRS Age",
measures = c("All Deaths")) |>
define_dimension(when) |>
define_dimension(where) |>
define_dimension(name = "Who",
attributes = c("Age"))