Description Usage Arguments Value Note References Examples
View source: R/epa_createMonitorObject.R
Convert EPA data into a ws_monitor object, ready for use with all monitor_~
functions.
1 2 3 4 5 | 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
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# 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)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.