findeventneighbors: Find event neighbors

Description Usage Arguments Value Author(s)

Description

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.

Usage

1
findeventneighbors(date, event, days = 0, by)

Arguments

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.

Value

Returns a vector of logicals that indivates which days are not events and not with in days (number provided) of another event.

Author(s)

Ander Wilson


AnderWilson/smurf documentation built on May 5, 2019, 4:57 a.m.