powered by
Return the latest date in each month for the values in `dates`
last_in_month(dates)
A sequence of dates in `as.Date()` format
Last day of each month
# NOT RUN { dates <- seq.Date(from = as.Date("2020-09-11"), by = "day", length.out = 10) last_in_month(dates) # }
Run the code above in your browser using DataLab