PWFSLSmoke (version 1.2.100)

airnow_downloadParseData: Download and aggregate multiple hourly data files from AirNow

Description

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:

  1. BARPR

  2. BC

  3. CO

  4. NO

  5. NO2

  6. NO2Y

  7. NO2X

  8. NOX

  9. NOOY

  10. OC

  11. OZONE

  12. PM10

  13. PM2.5

  14. PRECIP

  15. RHUM

  16. SO2

  17. SRAD

  18. TEMP

  19. UV-AETH

  20. WD

  21. 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.

Usage

airnow_downloadParseData(parameters = NULL,
  startdate = strftime(lubridate::now(), "%Y%m%d00", tz = "UTC"),
  hours = 24)

Arguments

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

Value

Tibble of aggregated AirNow data.

See Also

airnow_createDataDataframes

airnow_downloadHourlyData

Examples

Run this code
# NOT RUN {
tbl <- airnow_downloadParseData("PM2.5", 2016070112, hours = 24)
# }

Run the code above in your browser using DataLab