R/epa_createMonitorObject.R
epa_createMonitorObject.Rd
Convert EPA data into a ws_monitor object, ready for use with all monitor_~
functions.
epa_createMonitorObject( zipFile = NULL, zeroMinimum = TRUE, addGoogleMeta = TRUE )
zipFile | absolute path to monitoring data .zip file |
---|---|
zeroMinimum | logical specifying whether to convert negative values to zero |
addGoogleMeta | logicial specifying wheter to use Google elevation and reverse geocoding services |
A ws_monitor object with EPA data.
Before running this function you must first enable spatial data capabilities as in the example.
EPA AirData Pre-Generated Data Files
if (FALSE) { # Fail gracefully if any resources are not available try({ initializeMazamaSpatialUtils() zipFile <- epa_downloadData(2016, "88101", downloadDir = '~/Data/EPA') mon <- epa_createMonitorObject(zipFile, addGoogleMeta = FALSE) }, silent = FALSE) }