week: Convert dates to week numbers

Description Arguments Value Author(s) See Also Examples

Description

This function extracts the week number from date objects

Arguments

x

A POSIXt object

Value

week

Week number of the input object

Author(s)

Matti Pastell <matti.pastell@helsinki.fi>

See Also

day, day.string, hour, month

Examples

1
2
3
date <- Sys.time()
week.number <- week(date)
print(week.number)

Animal documentation built on May 2, 2019, 5:48 p.m.