Package: grates 1.2.2.9000

Tim Taylor

grates: Grouped Date Classes

Provides a coherent interface and implementation for creating grouped date classes. This package is part of the RECON (<https://www.repidemicsconsortium.org/>) toolkit for outbreak analysis.

Authors:Tim Taylor [aut, cre]

grates_1.2.2.9000.tar.gz
grates_1.2.2.9000.zip(r-4.5)grates_1.2.2.9000.zip(r-4.4)grates_1.2.2.9000.zip(r-4.3)
grates_1.2.2.9000.tgz(r-4.4-any)grates_1.2.2.9000.tgz(r-4.3-any)
grates_1.2.2.9000.tar.gz(r-4.5-noble)grates_1.2.2.9000.tar.gz(r-4.4-noble)
grates_1.2.2.9000.tgz(r-4.4-emscripten)grates_1.2.2.9000.tgz(r-4.3-emscripten)
grates.pdf |grates.html
grates/json (API)
NEWS

# Install 'grates' in R:
install.packages('grates', repos = c('https://reconverse.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/reconverse/grates/issues

On CRAN:

58 exports 17 stars 6.78 score 0 dependencies 2 dependents 15 scripts 1.1k downloads

Last updated 1 months agofrom:11922f0189. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 20 2024
R-4.5-winOKSep 20 2024
R-4.5-linuxOKSep 20 2024
R-4.4-winOKSep 20 2024
R-4.4-macOKSep 20 2024
R-4.3-winOKSep 20 2024
R-4.3-macOKSep 20 2024

Exports:%during%as_epiweekas_int_periodas_isoweekas_monthas_periodas_yearas_yearmonthas_yearquarteras_yearweekdate_enddate_startepiweekget_firstdayget_nget_offsetget_weekget_yearint_periodis_epiweekis_int_periodis_isoweekis_monthis_periodis_yearis_yearmonthis_yearquarteris_yearweekisoweeknew_epiweeknew_isoweeknew_monthnew_periodnew_yearmonthnew_yearquarternew_yearweekscale_x_grates_epiweekscale_x_grates_int_periodscale_x_grates_isoweekscale_x_grates_monthscale_x_grates_periodscale_x_grates_yearscale_x_grates_yearmonthscale_x_grates_yearquarterscale_x_grates_yearweekscale_x_grates_yearweek_epiweekscale_x_grates_yearweek_fridayscale_x_grates_yearweek_isoweekscale_x_grates_yearweek_mondayscale_x_grates_yearweek_saturdayscale_x_grates_yearweek_sundayscale_x_grates_yearweek_thursdayscale_x_grates_yearweek_tuesdayscale_x_grates_yearweek_wednesdayyearyearmonthyearquarteryearweek

Dependencies:

Introduction

Rendered fromgrates.Rmdusingknitr::knitron Sep 20 2024.

Last update: 2024-08-29
Started: 2022-11-16

Readme and manuals

Help Manual

Help pageTopics
Coerce to a epiweek objectas_epiweek as_epiweek.character as_epiweek.Date as_epiweek.default as_epiweek.factor as_epiweek.POSIXt
Coerce to a isoweek objectas_isoweek as_isoweek.character as_isoweek.Date as_isoweek.default as_isoweek.factor as_isoweek.POSIXt
Coerce an object to monthas_month as_month.character as_month.Date as_month.default as_month.factor as_month.POSIXt
Coerce an object to periodas_period as_period.character as_period.Date as_period.default as_period.factor as_period.POSIXt
Coerce an object to year-quarteras_year as_year.character as_year.Date as_year.default as_year.factor as_year.POSIXt
Coerce an object to year-monthas_yearmonth as_yearmonth.character as_yearmonth.Date as_yearmonth.default as_yearmonth.factor as_yearmonth.POSIXt
Coerce an object to year-quarteras_yearquarter as_yearquarter.character as_yearquarter.Date as_yearquarter.default as_yearquarter.factor as_yearquarter.POSIXt
Coerce to a yearweek objectas_yearweek as_yearweek.character as_yearweek.Date as_yearweek.default as_yearweek.factor as_yearweek.POSIXt
Access the start (end) dates of a grates vector%during% boundaries date_end date_start
Constructor for epiweek objectsepiweek
Accessors for grate objectsget_firstday get_firstday.default get_firstday.grates_yearweek_friday get_firstday.grates_yearweek_monday get_firstday.grates_yearweek_saturday get_firstday.grates_yearweek_sunday get_firstday.grates_yearweek_thursday get_firstday.grates_yearweek_tuesday get_firstday.grates_yearweek_wednesday get_n get_n.default get_n.grates_month get_n.grates_period get_offset get_offset.default get_offset.grates_period get_week get_week.default get_week.grates_epiweek get_week.grates_isoweek get_week.grates_yearweek get_year get_year.default get_year.grates_epiweek get_year.grates_isoweek get_year.grates_year get_year.grates_yearmonth get_year.grates_yearquarter get_year.grates_yearweek grouped_date_accessors
Constructor for isoweek objectsisoweek
Minimal constructor for an epiweek objectis_epiweek new_epiweek
Minimal constructor for an isoweek objectis_isoweek new_isoweek
Minimal Constructor for a month objectis_month new_month
Minimal constructor for a period objectis_period new_period
Minimal constructor for a yearmonth objectis_yearmonth new_yearmonth
Minimal constructor for a yearquarter objectis_yearquarter new_yearquarter
Minimal constructor for a yearweek objectis_yearweek new_yearweek
Print a month objectformat.grates_month print.grates_month
Print a period objectformat.grates_period print.grates_period
Print a year-quarter objectformat.grates_year print.grates_year
Print a year-month objectformat.grates_yearmonth print.grates_yearmonth
Print a year-quarter objectformat.grates_yearquarter print.grates_yearquarter
epiweek scalescale_x_grates_epiweek
isoweek scalescale_x_grates_isoweek
month scalescale_x_grates_month
period scalescale_x_grates_period
year scalescale_x_grates_year
yearmonth scalescale_x_grates_yearmonth
yearquarter scalescale_x_grates_yearquarter
yearweek scalescale_x_grates_yearweek 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 scale_x_grates_yearweek_wednesday
Construct a year objectis_year year
Constructor for yearmonth objectsyearmonth
Constructor for yearquarter objectsyearquarter
Constructor for yearweek objectsyearweek