month {Animal}R Documentation

Convert dates to month numbers

Description

This function extracts the day of month from date objects

Arguments

x A POSIXt object

Value

month Month number of the input object

Author(s)

Matti Pastell <matti.pastell@helsinki.fi>

See Also

day, day.string, hour,week

Examples

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

[Package Animal version 1.01 Index]