as.data.frame.aweek: Convert aweek objects to a data frame

View source: R/as.data.frame.aweek.R

as.data.frame.aweekR 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

date2week() print.aweek()

Examples


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

aweek documentation built on Oct. 6, 2022, 9:07 a.m.