month: Convert dates to month numbers

Description Arguments Value Author(s) See Also Examples

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

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

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