week {Animal}R Documentation

Convert dates to week numbers

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

date <- Sys.time()
week.number <- week(date)
print(week.number)

[Package Animal version 1.01 Index]