View source: R/make_date_str.R
make_date_str | R Documentation |
This function takes a date and arguments about how to represent months to form a character string that forms a date.
make_date_str(.date, label = TRUE, abbr = TRUE)
.date |
a POSIXct or Date object to be translated |
label |
(from ?lubridate:::month) logical. TRUE will display the month as a character string such as "January." FALSE will display the month as a number. |
abbr |
(from ?lubridate:::month) 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. |
library(stringi, quietly = TRUE)
library(lubridate, quietly = TRUE)
make_date_str(ymd("2010/3/21", quiet = TRUE))
make_date_str(ymd("2010/3/21", quiet = TRUE), abbr = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.