last_in_year {dateutils} | R Documentation |
Last date in the year
Description
Return the latest date in each year for the values in 'dates'
Usage
last_in_year(dates)
Arguments
dates |
A sequence of dates in 'as.Date()' format |
Value
Last day of the year
Examples
dates <- seq.Date(from = as.Date("2020-09-11"),
by = "day", length.out = 10)
last_in_year(dates)
[Package dateutils version 0.1.5 Index]