PWFSLSmoke (version 1.2.100)

airnow_downloadHourlyData: Download hourly data from AirNow

Description

The https://airnowtech.org site provides both air pollution monitoring data as well as monitoring site location metadata. This function retrieves a single, hourly data file and returns it as a dataframe.

Usage

airnow_downloadHourlyData(datestamp = strftime(lubridate::now(),
  "%Y%m%d00", tz = "UTC"),
  baseUrl = "https://files.airnowtech.org/airnow")

Arguments

datestamp

Integer or character representing YYYYMMDDHH.

baseUrl

Base URL for archived hourly data.

Value

Dataframe of AirNow hourly data.

See Also

airnow_createDataDataframes

airnow_downloadParseData

Examples

Run this code
# NOT RUN {
df <- airnow_downloadHourlyData(2018070112)
# }

Run the code above in your browser using DataCamp Workspace