View source: R/star_schema_filter_fact_rows.R
filter_fact_rows | R Documentation |
Filter fact rows based on dimension conditions in a star schema. Dimensions remain unchanged.
filter_fact_rows(st, name = NULL, ...)
## S3 method for class 'star_schema'
filter_fact_rows(st, name = NULL, ...)
st |
A |
name |
A string, name of the dimension. |
... |
Conditions, defined in exactly the same way as in |
Filtered rows can be deleted using the incremental_refresh_star_schema
function.
A star_schema
object.
Other incremental refresh functions:
get_star_schema()
,
get_star_schema_names()
,
incremental_refresh_constellation()
,
incremental_refresh_star_schema()
,
purge_dimensions_constellation()
,
purge_dimensions_star_schema()
st <- st_mrs_age |>
filter_fact_rows(name = "when", week <= "03") |>
filter_fact_rows(name = "where", city == "Bridgeport")
st2 <- st_mrs_age |>
incremental_refresh_star_schema(st, existing = "delete")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.