year.date_xx | R Documentation |
See lubridate::year()
and lubridate::month()
year.date_xx(x) month.date_xx(x, label = FALSE, abbr = TRUE, locale = Sys.getlocale("LC_TIME")) isoweek.date_xx(x)
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. |
get_year
## Not run: library(lubridate) month(x) month(x, label = TRUE) ## End(Not run) ## Not run: library(lubridate) isoweek(x) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.