View source: R/as.data.frame.aweek.R
| as.data.frame.aweek | R Documentation |
Convert aweek objects to a data frame
## S3 method for class 'aweek' as.data.frame(x, ...)
x |
an aweek object |
... |
unused |
a data frame with an aweek column
date2week() print.aweek()
d <- as.Date("2019-03-25") + 0:6
w <- date2week(d, "Sunday")
dw <- data.frame(date = d, week = w)
dw
dw$week
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.