Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.data.frame.aweek

Convert aweek objects to a data frame


Description

Convert aweek objects to a data frame

Usage

## S3 method for class 'aweek'
as.data.frame(x, ...)

Arguments

x

an aweek object

...

unused

Value

a data frame with an aweek column

See Also

Examples

d  <- as.Date("2019-03-25") + 0:6
w  <- date2week(d, "Sunday")
dw <- data.frame(date = d, week = w)
dw
dw$week

aweek

Convert Dates to Arbitrary Week Definitions

v1.0.2
MIT + file LICENSE
Authors
Zhian N. Kamvar [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.