| ndate | R Documentation |
neat representation of dates
ndate(
date,
show_weekday = TRUE,
show_month_year = FALSE,
display_weekday = NULL,
is_month = NULL
)
date |
a Date or POSIX time stamp |
show_weekday |
a Boolean. Whether the weekday of the date to be included. |
show_month_year |
a Boolean variable representing if the date represents month. If this set to TRUE, the function returns 'MMMM'YY' as the output which is a neater representation of month. |
display_weekday |
Deprecated. Use 'show_weekday' instead. |
is_month |
Deprecated. Use 'show_month_year' instead. |
String representation of the date
# Neat representation of current date
x <- Sys.Date()
ndate(x)
# Neat representation of current date with day of week.
ndate(x, show_weekday = FALSE)
# Neat representation of current date with only month and year
ndate(x, show_weekday = FALSE, show_month_year = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.