getWeek: Gets week from a date

Description Usage Arguments Examples

View source: R/getWeek.R

Description

Gets week from a date, has to be Date class

Usage

1
getWeek(Date, order = "Mon-Sun")

Arguments

Date

Date class object.

order

Character. "Mon-Sun" or "Sun-Mon".

Examples

1
2
3
x <- as.Date("2015-01-12")
getWeek(x, order = "Mon-Sun")
getWeek(x, order = "Sun-Mon")

Braja93/braja documentation built on June 1, 2017, 5:19 p.m.