Description Usage Arguments Value References Examples
View source: R/epa_loadAnnual.R
Loads pre-generated .RData files containing annual EPA data.
EPA parameter codes include:
88101 – PM2.5 FRM/FEM Mass (begins in 2008)
88502 – PM2.5 non FRM/FEM Mass (begins in 1998)
Avaialble RData and associated log files can be seen at: https://haze.airfire.org/monitoring/EPA/RData/
1 2 3 4 5 6 | epa_loadAnnual(
year = NULL,
parameterCode = NULL,
baseUrl = "https://haze.airfire.org/monitoring",
dataDir = NULL
)
|
year |
Desired year (integer or character representing YYYY). |
parameterCode |
Pollutant code. |
baseUrl |
Base URL for 'annual' EPA data files. |
dataDir |
Local directory containing 'annual' data files. |
A ws_monitor object with EPA data.
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({
epa_loadAnnual(2000, "88502") %>%
monitor_subset(stateCodes = 'WA', tlim=c(20000701,20000801)) %>%
monitor_map()
}, silent = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.