Grouped Date Classes
Overview
Provides a coherent interface and implementation for creating grouped date classes.
- New function
get_interval_duration()which returns the number of days covered by an element of a grates object, e.g. the following is TRUE ``identical( get_interval_duration(yearmonth(2020, 1:3)), c(31, 29, 31) )``
breaking change
as.double()for<grates_int_period>objects now returns the same result (subject to type) asas.integer(). Both return the lower bound of related interval. Note that<grates_int_period>objects should still be treated as experimental for the time being.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 26 (1 internal)includes a package overview page
- Examples that run
- 100%20 run in a plain check (7 of them under a condition)
- Exported functions with examples
- 91%
- Documented parameters
- 72%
- Return-value docs
- 100%
- Help pages citing references
- 12%
Downloads
Repository
- PRs merged (all time)
- 60%
- Median days to close, 50 most recently updated closed issues
- 24
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/reconverse/grates on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing grates adds 1 package (1 with compiled code, 20 KB of source tarballs). Heaviest: fastymd 20 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.8.0Latest
- 1.7.22026-02-27 · diff ↗
- 1.7.12025-12-19 · diff ↗
- 1.7.02025-11-21 · diff ↗
- 1.6.02025-08-26 · diff ↗
- 1.5.02025-04-28 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.4.32025-03-10 · diff ↗
- 1.4.22025-03-07 · diff ↗
- 1.4.12025-02-05 · diff ↗
- 1.4.02025-01-17 · diff ↗
- 1.3.0
- 1.2.22024-08-29 · diff ↗
- 1.2.12024-05-31 · diff ↗
- RR 4.4.0 released · 2024-04-24
Show 14 earlier eventsHide 14 earlier events
- 1.2.0
- 1.1.12024-02-28 · diff ↗
- 1.1.02023-06-09 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.0.12023-04-03 · diff ↗
- 1.0.02023-03-17 · diff ↗ ·
removed 17 exports
as_quarter, clock_locale, get_date_range, get_quarter, is_grate, is_quarter, month, period, quarter, scale_x_grates_quarter, scale_x_yearweek_1, scale_x_yearweek_2, scale_x_yearweek_3, scale_x_yearweek_4, scale_x_yearweek_5, scale_x_yearweek_6, scale_x_yearweek_7added 33 exports
as_epiweek, as_isoweek, as_yearmonth, as_yearquarter, epiweek, get_offset, is_epiweek, is_isoweek, is_yearmonth, is_yearquarter, isoweek, new_epiweek, new_isoweek, new_month, new_period, new_yearmonth, new_yearquarter, new_yearweek, scale_x_grates_epiweek, scale_x_grates_isoweek, scale_x_grates_yearmonth, scale_x_grates_yearquarter, scale_x_grates_yearweek_epiweek, scale_x_grates_yearweek_friday, scale_x_grates_yearweek_isoweek, scale_x_grates_yearweek_monday, scale_x_grates_yearweek_saturday, scale_x_grates_yearweek_sunday, scale_x_grates_yearweek_thursday, scale_x_grates_yearweek_tuesday and 3 more - 0.3.12022-11-10 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.3.02021-10-21 · diff ↗
- 0.2.02021-05-29 · diff ↗ ·
removed 26 exports
as_yr, as_yrmon, as_yrqtr, as_yrwk, get_interval, get_month, get_week_start, is_yr, is_yrmon, is_yrqtr, is_yrwk, new_date, s3_register, scale_x_int_period, scale_x_period, scale_x_yr, scale_x_yrmon, scale_x_yrqtr, scale_x_yrwk, scale_x_yrwk_fd_1, scale_x_yrwk_fd_2, scale_x_yrwk_fd_3, scale_x_yrwk_fd_4, scale_x_yrwk_fd_5, scale_x_yrwk_fd_6, scale_x_yrwk_fd_7added 30 exports
as_month, as_quarter, as_year, as_yearweek, clock_locale, get_date_range, get_n, int_period, is_month, is_quarter, is_year, is_yearweek, month, period, quarter, scale_x_grates_int_period, scale_x_grates_month, scale_x_grates_period, scale_x_grates_quarter, scale_x_grates_year, scale_x_grates_yearweek, scale_x_yearweek_1, scale_x_yearweek_2, scale_x_yearweek_3, scale_x_yearweek_4, scale_x_yearweek_5, scale_x_yearweek_6, scale_x_yearweek_7, year, yearweek - RR 4.1.0 released · 2021-05-18
- 0.1.2
- 0.1.12021-03-19
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-03-19
- Total releases
- 23 / 5 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.6.0
- Download size
- 496 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("grates")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.