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