Find the Last Full Year
lastFullYear.Rd
Find the last full year in a character vector representing successive dates.
Usage
lastFullYear(dateTxt, leap = FALSE, out = c("character", "logical"))
Arguments
- dateTxt
A character vector giving a date in POSIX format.
- leap
Logical if
TRUE
, the last full leap year will be returned.- out
Character. When given the value
"character"
, a character vector extracted fromdataeTxt
is returned. When the valuelogical
is given, a logical vector is returned, indicating the elements indateTxt
.