USGS-R / Rainmaker

Repo being permanently moved to: https://code.usgs.gov/water/analysis-tools/Rainmaker
https://code.usgs.gov/water/analysis-tools/Rainmaker
Other
18 stars 14 forks source link

RMevents fails with missing data #30

Closed limnoliver closed 6 years ago

limnoliver commented 6 years ago

Edge case: when there are NA values for dates, RMevents fails because it cannot return TRUE/FALSE for difftime >= x. Should make this more robust, or return error that lets user know they have missing values.

limnoliver commented 6 years ago

wrapped this in which() which solves issues of NA values