Learn R Programming

⚠️There's a newer version (1.0.3) of this package.Take me there.

aweek (version 1.0.1)

Convert Dates to Arbitrary Week Definitions

Description

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.

Copy Link

Version

Install

install.packages('aweek')

Monthly Downloads

1,705

Version

1.0.1

License

MIT + file LICENSE

Maintainer

Zhian N. Kamvar

Last Published

April 29th, 2020

Functions in aweek (1.0.1)

set_week_start

Get and set the global week_start variable
get_aweek

Convert week numbers to dates or aweek objects
as.Date.aweek

Convert aweek objects to characters or dates
change_week_start

Change the week start of an aweek object
as.aweek

Convert characters or dates to aweek objects
as.data.frame.aweek

Convert aweek objects to a data frame
date2week

Convert date to a an arbitrary week definition
print.aweek

The aweek class
aweek-package

Convert dates to weeks and back again
factor_aweek

Coerce an aweek object to factor to include missing weeks