Find the Last Full Year
lastFullYear.RdFind 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 fromdataeTxtis returned. When the valuelogicalis given, a logical vector is returned, indicating the elements indateTxt.