index_by_friday {dateutils} | R Documentation |
Find the Friday in a given week
Description
Find the Friday in a given week from a sequence of Dates Vectors should be in as.Date() format
Usage
index_by_friday(dates)
Arguments
dates |
vector of dates |
Value
The date of the Friday in the week of the given date
Examples
dates <- seq.Date(from = as.Date("2020-09-21"),
by = "week", length.out = 10)
fridays <- index_by_friday(dates)
weekdays(fridays)
[Package dateutils version 0.1.5 Index]