Convert EPA data into a ws_monitor object, ready for use with all monitor_~ functions.

epa_createMonitorObject(
  zipFile = NULL,
  zeroMinimum = TRUE,
  addGoogleMeta = TRUE
)

Arguments

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

Value

A ws_monitor object with EPA data.

Note

Before running this function you must first enable spatial data capabilities as in the example.

References

EPA AirData Pre-Generated Data Files

file format description

Examples

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) }