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

Modernized RMevents_sample #41

Closed limnoliver closed 6 years ago

limnoliver commented 6 years ago

Brought this function up-to-date by having it output the exact same format/data as RMevents. This will allow seamless integration into other Rainmaker functions.

Also fixed an edge-case bug. I had sample data with samples from outside of the rain data. Now it spits out NA values but keeps a placesholder for that storm so that it can easily be added back to the sample data - e.g., nrow(samples) will be the same as nrow(output)