https://github.com/datacamp/tidymetrics
Dimensional modeling done the tidy way!
https://github.com/datacamp/tidymetrics
Last synced: 1 day ago
JSON representation
Dimensional modeling done the tidy way!
- Host: GitHub
- URL: https://github.com/datacamp/tidymetrics
- Owner: datacamp
- License: other
- Created: 2019-06-14T15:25:51.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-18T16:55:57.000Z (over 3 years ago)
- Last Synced: 2024-08-13T07:13:21.368Z (8 months ago)
- Language: R
- Homepage:
- Size: 131 KB
- Stars: 45
- Watchers: 17
- Forks: 11
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - datacamp/tidymetrics - Dimensional modeling done the tidy way! (R)
README
# tidymetrics
**Authors:** Ramnath Vaidyanathan, [David Robinson](http://varianceexplained.org/)
[](https://github.com/datacamp/tidymetrics/actions)
[](https://www.tidyverse.org/lifecycle/#experimental)
[](https://codecov.io/gh/datacamp/tidymetrics?branch=master)Dimensional modeling done the tidy way!
## What the package contains
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 it
* `create_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 columns
* `condense_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)## Code of Conduct
Please note that the 'tidymetrics' project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By contributing to this project, you agree to abide by its terms.