week_of_the_year: Compute the week of the year

Description Usage Arguments Value Examples

Description

This function allows you to the week number in one year for a given date

Usage

1

Arguments

date

date

Value

a number

Examples

1
2
3
4
library("lubridate")
week_of_the_year(date = today())
week_of_the_year(date = as.Date("2015-10-21"))
week_of_the_year(seq(as.Date("1990-12-31"), as.Date("2015-12-31"), by = "year"))

pachevalier/tricky documentation built on May 24, 2019, 5:57 p.m.