Description Usage Arguments Value Note References Examples
View source: R/epa_parseData.R
This function uncompress previously downloaded air quality .zip files from the EPA and reads it into a tibble.
Available parameters include:
Ozone
SO2
CO
NO2
PM2.5
PM10
Wind
Temperature
Barometric_Pressure
RH_and_Dewpoint
HAPs
VOCs
NONOxNOy
Associated parameter codes include:
44201 – Ozone
42401 – SO2
42101 – CO
42602 – NO2
88101 – PM2.5
88502 – PM2.5
81102 – PM10
SPEC – PM2.5
WIND – Wind
TEMP – Temperature
PRESS – Barometric Pressure
RH_DP – RH and dewpoint
HAPS – HAPs
VOCS – VOCs
NONOxNOy
1 | epa_parseData(zipFile = NULL)
|
zipFile |
absolute path to monitoring data .zip file |
Tibble of EPA data.
Unzipped CSV files are almost 100X larger than the compressed .zip files. CSV files are removed after data are read into a dataframe.
EPA AirData Pre-Generated Data Files
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Fail gracefully if any resources are not available
try({
zipFile <- epa_downloadData(2016, "88101", '~/Data/EPA')
tbl <- epa_parseData(zipFile, "PM2.5")
}, silent = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.