%during% | R Documentation |
%during%
determines whether a supplied date is within the period covered
by each element of a grates object.
date %during% x
date |
A scalar |
x |
grouped date vector. |
A logical vector indicating whether the date was present within the range of the tested object.
dates <- as.Date("2020-01-01") + 1:10
week <- as_isoweek(dates)
dates[1] %during% week
period <- as_period(dates, n = 3)
dates[10] %during% period
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.