MazamaScience / PWFSLSmoke

Utilities for working with air quality monitoring data (e.g. federal regulatory monitors)
http://mazamascience.github.io/PWFSLSmoke/
GNU General Public License v3.0
19 stars 5 forks source link

monitor_join should handle all-missing #100

Open jonathancallahan opened 4 years ago

jonathancallahan commented 4 years ago

I tried to join to ws_monitor objects, one which had a monitorID column with all NA and another which did not have that monitorID column. I got this error:

Error in if (ncol(data) == 1) { : argument is of length zero

The current workaround is to monitor_subset(dropMonitors = TRUE) before joining. But monitor_join() should be able to handle this.