Package: grates 1.3.0
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:
grates_1.3.0.tar.gz
grates_1.3.0.zip(r-4.5)grates_1.3.0.zip(r-4.4)grates_1.3.0.zip(r-4.3)
grates_1.3.0.tgz(r-4.4-any)grates_1.3.0.tgz(r-4.3-any)
grates_1.3.0.tar.gz(r-4.5-noble)grates_1.3.0.tar.gz(r-4.4-noble)
grates_1.3.0.tgz(r-4.4-emscripten)grates_1.3.0.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')) |
Bug tracker:https://github.com/reconverse/grates/issues
Last updated 2 days agofrom:96ba740c73. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 20 2024 |
R-4.5-win | OK | Nov 20 2024 |
R-4.5-linux | OK | Nov 20 2024 |
R-4.4-win | OK | Nov 20 2024 |
R-4.4-mac | OK | Nov 20 2024 |
R-4.3-win | OK | Nov 20 2024 |
R-4.3-mac | OK | Nov 20 2024 |
Exports:%during%as_epiweekas_int_periodas_isoweekas_monthas_periodas_yearas_yearmonthas_yearquarteras_yearweekdate_enddate_startepiweekget_firstdayget_nget_offsetget_weekget_yearis_epiweekis_int_periodis_isoweekis_monthis_periodis_yearis_yearmonthis_yearquarteris_yearweekisoweeknew_epiweeknew_int_periodnew_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:
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Coerce to a epiweek object | as_epiweek as_epiweek.character as_epiweek.Date as_epiweek.default as_epiweek.factor as_epiweek.POSIXt |
Coerce to a isoweek object | as_isoweek as_isoweek.character as_isoweek.Date as_isoweek.default as_isoweek.factor as_isoweek.POSIXt |
Coerce an object to month | as_month as_month.character as_month.Date as_month.default as_month.factor as_month.POSIXt |
Coerce an object to period | as_period as_period.character as_period.Date as_period.default as_period.factor as_period.POSIXt |
Coerce an object to year-quarter | as_year as_year.character as_year.Date as_year.default as_year.factor as_year.POSIXt |
Coerce an object to year-month | as_yearmonth as_yearmonth.character as_yearmonth.Date as_yearmonth.default as_yearmonth.factor as_yearmonth.POSIXt |
Coerce an object to year-quarter | as_yearquarter as_yearquarter.character as_yearquarter.Date as_yearquarter.default as_yearquarter.factor as_yearquarter.POSIXt |
Coerce to a yearweek object | as_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 objects | epiweek |
Accessors for grate objects | get_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_int_period 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 objects | isoweek |
Minimal constructor for an epiweek object | is_epiweek new_epiweek |
Minimal constructor for an isoweek object | is_isoweek new_isoweek |
Minimal Constructor for a month object | is_month new_month |
Minimal constructor for a period object | is_period new_period |
Minimal constructor for a yearmonth object | is_yearmonth new_yearmonth |
Minimal constructor for a yearquarter object | is_yearquarter new_yearquarter |
Minimal constructor for a yearweek object | is_yearweek new_yearweek |
Print an int_period object | format.grates_int_period print.grates_int_period |
Print a month object | format.grates_month print.grates_month |
Print a period object | format.grates_period print.grates_period |
Print a year-quarter object | format.grates_year print.grates_year |
Print a year-month object | format.grates_yearmonth print.grates_yearmonth |
Print a year-quarter object | format.grates_yearquarter print.grates_yearquarter |
epiweek scale | scale_x_grates_epiweek |
isoweek scale | scale_x_grates_isoweek |
month scale | scale_x_grates_month |
period scale | scale_x_grates_period |
year scale | scale_x_grates_year |
yearmonth scale | scale_x_grates_yearmonth |
yearquarter scale | scale_x_grates_yearquarter |
yearweek scale | scale_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 object | is_year year |
Constructor for yearmonth objects | yearmonth |
Constructor for yearquarter objects | yearquarter |
Constructor for yearweek objects | yearweek |