Description Usage Arguments Value Author(s)
This function finds non-event days that are near events (e.g. the day after a heat waves or ozone events). The days are potentially excluded as potential control days when using matching approachs.
1 | findeventneighbors(date, event, days = 0, by)
|
date |
A vector of dates. |
event |
A logical indicating if a day was an event. |
days |
The number of days that must separate a given day from an event. |
by |
A vector of ids or a matrix with columns as the id variables. The events will be found separately within each unique combination of id variables. This is optional. |
Returns a vector of logicals that indivates which days are not events and not with in days (number provided) of another event.
Ander Wilson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.