Package: aweek 1.0.2

Zhian N. Kamvar

aweek: Convert Dates to Arbitrary Week Definitions

Which day a week starts depends heavily on the either the local or professional context. This package is designed to be a lightweight solution to easily switching between week-based date definitions.

Authors:Zhian N. Kamvar [aut, cre]

aweek_1.0.2.tar.gz
aweek_1.0.2.zip(r-4.5)aweek_1.0.2.zip(r-4.4)aweek_1.0.2.zip(r-4.3)
aweek_1.0.2.tgz(r-4.4-any)aweek_1.0.2.tgz(r-4.3-any)
aweek_1.0.2.tar.gz(r-4.5-noble)aweek_1.0.2.tar.gz(r-4.4-noble)
aweek_1.0.2.tgz(r-4.4-emscripten)aweek_1.0.2.tgz(r-4.3-emscripten)
aweek.pdf |aweek.html
aweek/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/reconhub/aweek/issues

On CRAN:

date-formattingdatesepidemiologytimeseriesweek

7.88 score 17 stars 15 packages 118 scripts 1.7k downloads 9 exports 0 dependencies

Last updated 4 years agofrom:12785ec362. Checks:OK: 1 ERROR: 6. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-winERROROct 31 2024
R-4.5-linuxERROROct 31 2024
R-4.4-winERROROct 31 2024
R-4.4-macERROROct 31 2024
R-4.3-winERROROct 31 2024
R-4.3-macERROROct 31 2024

Exports:as.aweekchange_week_startdate2weekfactor_aweekget_aweekget_dateget_week_startset_week_startweek2date

Dependencies:

aweek means 'any week'

Rendered fromintroduction.Rmdusingknitr::rmarkdownon Oct 31 2024.

Last update: 2021-03-21
Started: 2019-02-25

Readme and manuals

Help Manual

Help pageTopics
Convert dates to weeks and back againaweek-package aweek
Convert characters or dates to aweek objectsas.aweek as.aweek.aweek as.aweek.character as.aweek.Date as.aweek.default as.aweek.factor as.aweek.NULL as.aweek.POSIXt
Convert aweek objects to a data frameas.data.frame.aweek
Convert aweek objects to characters or datesas.character.aweek as.Date.aweek as.POSIXlt.aweek
Change the week start of an aweek objectchange_week_start
Convert date to a an arbitrary week definitiondate2week week2date
Coerce an aweek object to factor to include missing weeksfactor_aweek
Convert week numbers to dates or aweek objectsget_aweek get_date
The aweek classas.list.aweek aweek-class c.aweek print.aweek rep.aweek trunc.aweek [.aweek [<-.aweek [[.aweek
Get and set the global week_start variableget_week_start set_week_start