Description Usage Arguments Value Note See Also Examples
View source: R/airnow_downloadParseData.R
This function makes repeated calls to airnow_downloadHourlyData to obtain data from AirNow. All data obtained are then combined into a single tibble and returned.
Parameters included in AirNow data include at least the following list:
BARPR
BC
CO
NO
NO2
NO2Y
NO2X
NOX
NOOY
OC
OZONE
PM10
PM2.5
PRECIP
RHUM
SO2
SRAD
TEMP
UV-AETH
WD
WS
Passing a vector of one ore more of the above names as the parameters
argument will cause the resulting
tibble to be filtered to contain only records for those parameters.
1 2 3 4 5 | airnow_downloadParseData(
parameters = NULL,
startdate = strftime(lubridate::now(tzone = "UTC"), "%Y%m%d00", tz = "UTC"),
hours = 24
)
|
parameters |
vector of names of desired pollutants or NULL for all pollutants |
startdate |
desired start date (integer or character representing YYYYMMDD[HH]) |
hours |
desired number of hours of data to assemble |
Tibble of aggregated AirNow data.
As of 2016-12-27, it appears that hourly data are available only for 2016 and not for earlier years.
airnow_createDataDataframes
airnow_downloadHourlyData
1 2 3 4 5 6 7 8 9 | ## Not run:
# Fail gracefully if any resources are not available
try({
tbl <- airnow_downloadParseData("PM2.5", 2016070112, hours = 24)
}, silent = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.