Authors: Ramnath Vaidyanathan, David Robinson
Dimensional modeling done the tidy way!
The "cross by" family of functions, which prepare data to be aggregated in ways useful for dimensional modeling:
cross_by_periods
, which prepares data with a date
column to be aggregated by calendar periods (day/week/month), rolling windows, or "X weeks ago"cross_by_dimensions
, which adds an All
level to each segmentMethods for annotating aggregated metrics with useful metadata:
create_metrics
, which gathers a table of metrics into a list of tbl_metric
objects and attaches metadata to itcreate_metric_group
, which annotates a group of metrics with the same dimensions as a tbl_metric_group
Verbs for working with dimensions in metric tables, including:
discard_dimensions
(and its inverse keep_dimensions
), which filters for only the All
segment of dimensions and removes those columnscondense_metric
, which retains only observations with one non-All dimension (in order to store a compact version that can still be explored one dimension at a time) Please note that the 'tidymetrics' project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.