as.data.frame.aweek {aweek} | R Documentation |
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
[Package aweek version 1.0.3 Index]