year.date_xx {dint} | R Documentation |
Get Year, Quarter or Month (lubridate Compatibility)
Description
See lubridate::year()
and lubridate::month()
Usage
year.date_xx(x)
month.date_xx(x, label = FALSE, abbr = TRUE, locale = Sys.getlocale("LC_TIME"))
isoweek.date_xx(x)
Arguments
x |
a date_xx or any R object that can be coerced to |
label |
logical. TRUE will display the month as a character string such as "January." FALSE will display the month as a number. |
abbr |
logical. FALSE will display the month as a character string label, such as "January". TRUE will display an abbreviated version of the label, such as "Jan". abbr is disregarded if label = FALSE. |
locale |
for month, locale to use for month names. Default to current locale. |
See Also
Examples
## Not run:
library(lubridate)
month(x)
month(x, label = TRUE)
## End(Not run)
## Not run:
library(lubridate)
isoweek(x)
## End(Not run)
[Package dint version 2.1.4 Index]