{"id":14067255,"url":"https://github.com/datacamp/tidymetrics","last_synced_at":"2026-03-07T22:32:19.093Z","repository":{"id":45353867,"uuid":"191966268","full_name":"datacamp/tidymetrics","owner":"datacamp","description":"Dimensional modeling done the tidy way!","archived":false,"fork":false,"pushed_at":"2021-12-18T16:55:57.000Z","size":134,"stargazers_count":46,"open_issues_count":10,"forks_count":11,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-13T01:28:56.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datacamp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-14T15:25:51.000Z","updated_at":"2025-02-04T10:44:28.000Z","dependencies_parsed_at":"2022-07-16T20:00:41.876Z","dependency_job_id":null,"html_url":"https://github.com/datacamp/tidymetrics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/datacamp/tidymetrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Ftidymetrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Ftidymetrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Ftidymetrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Ftidymetrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datacamp","download_url":"https://codeload.github.com/datacamp/tidymetrics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Ftidymetrics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30234591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T07:05:30.432Z","updated_at":"2026-03-07T22:32:19.049Z","avatar_url":"https://github.com/datacamp.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# tidymetrics\n\n**Authors:** Ramnath Vaidyanathan, [David Robinson](http://varianceexplained.org/)\u003cbr/\u003e\n\n\u003c!-- badges: start --\u003e\n  [![R build status](https://github.com/datacamp/tidymetrics/workflows/R-CMD-check/badge.svg)](https://github.com/datacamp/tidymetrics/actions)\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n[![Codecov test coverage](https://codecov.io/gh/datacamp/tidymetrics/branch/master/graph/badge.svg)](https://codecov.io/gh/datacamp/tidymetrics?branch=master)\n\u003c!-- badges: end --\u003e\n\n\u003c!--\n\n[![Travis build status](https://travis-ci.org/ramnathv/tidymetrics.svg?branch=master)](https://travis-ci.org/ramnathv/tidymetrics)\n[![Codecov test coverage](https://codecov.io/gh/ramnathv/tidymetrics/branch/master/graph/badge.svg)](https://codecov.io/gh/ramnathv/tidymetrics?branch=master) [![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n\n--\u003e\n\nDimensional modeling done the tidy way!\n\n## What the package contains\n\nThe \"cross by\" family of functions, which prepare data to be aggregated in ways useful for dimensional modeling:\n\n* `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\"\n* `cross_by_dimensions`, which adds an `All` level to each segment\n\nMethods for annotating aggregated metrics with useful metadata:\n\n* `create_metrics`, which gathers a table of metrics into a list of `tbl_metric` objects and attaches metadata to it\n* `create_metric_group`, which annotates a group of metrics with the same dimensions as a `tbl_metric_group`\n\nVerbs for working with dimensions in metric tables, including:\n\n* `discard_dimensions` (and its inverse `keep_dimensions`), which filters for only the `All` segment of dimensions and removes those columns\n* `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) \n\n## Code of Conduct\n\nPlease 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacamp%2Ftidymetrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatacamp%2Ftidymetrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacamp%2Ftidymetrics/lists"}