Learn R Programming

grates provide a simple and coherent implementation for grouped date classes.

Installing the package

You can install the latest release of grates from CRAN with:

install.packages("grates")

Vignettes

A detailed introduction to grates can be found in the included vignette

vignette("grates", package = "grates")

Copy Link

Version

Install

install.packages('grates')

Monthly Downloads

1,143

Version

1.4.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Tim Taylor

Last Published

March 10th, 2025

Functions in grates (1.4.3)

year_class

Year class
scale_x_grates_epiweek

Epiweek scale
yearmonth_class

Yearmonth class
yearquarter_class

Yearquarter class
yearweek_class

Yearweek class
print.grates_month

Format and print a month object
month_class

Month class
grouped_date_accessors

Accessors for grate objects
boundaries

Access the bounding dates of a grates object
%during%

Is a date covered by a grouped date
int_period_class

Integer-period class (Experimental)
isoweek_class

ISO Week class
period_class

Period class
epiweek_class

Epiweek class
print.grates_period

Print a period object
scale_x_grates_isoweek

Isoweek scale
scale_x_grates_month

Month scale
scale_x_grates_year

Year scale
print.grates_yearmonth

Format and print a yearmonth object
scale_x_grates_int_period

Integer-period scale (Experimental)
scale_x_grates_yearquarter

Yearquarter scale
scale_x_grates_yearweek

Yearweek scale
scale_x_grates_period

Period scale
scale_x_grates_yearmonth

Yearmonth scale