woy: Converts Date values to week-of-the-year Values may range...

Description Usage Arguments Value

View source: R/analyze.R

Description

Converts Date values to week-of-the-year

Values may range from 1-53 unless coerce is TRUE (the default) in which case will coerce the oddball end-of-year days to belong to the 52 week

Usage

1
woy(x = Sys.Date(), coerce = TRUE)

Arguments

x

The date values as POSIXct or Date class

coerce

logical, if TRUE for weeks into 1-52

Value

numeric week of year (either 1-53 or 1-52)


BigelowLab/stsaav documentation built on May 5, 2019, 2:45 p.m.