Description Usage Arguments Value Examples
View source: R/get_date_info.R
Get date information (year, month, mday, yday)
1 | get_date_info(.date, .output = "list")
|
.date |
(vector of dates) |
list with named entries with information extracted from the date, e.g. year, month, day of month and year day. If a year is a leapyear all dates after 29th February will have a yday minus 1, so e.g. 1.March will have the same yday independent if it is leapyear or not.
1 2 3 4 5 6 | get_date_info(c("2013-05-04", "2016-01-09"))
get_date_info(c(NA, "2016-03-09"))
# Behaviour for leap years
get_date_info("2016-03-01")
get_date_info("2017-03-01")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.