Learn R Programming

PWFSLSmoke (version 1.0.16)

epa_load: Load Processed EPA Monitoring Data

Description

Loads a pre-generated .RData file containing a year's worth of monitoring data.

EPA parameter codes include:

  1. 88101 -- PM2.5 FRM/FEM Mass (begins in 2008)

  2. 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/

Usage

epa_load(year = strftime(lubridate::now(), "%Y", tz = "UTC"),
  parameterCode = "88101",
  baseUrl = "https://haze.airfire.org/monitoring/EPA/RData/")

Arguments

year

desired year (integer or character representing YYYY)

parameterCode

pollutant code

baseUrl

base URL for EPA .RData files

Value

A ws_monitor object with EPA data for an entire year.

References

EPA AirData Pre-Generated Data Files

Examples

Run this code
# NOT RUN {
epa_frm <- epa_load(2015, 88101)
epa_frm_conus <- monitor_subset(epa_frm, stateCodes=CONUS)
monitorLeaflet(epa_frm_conus)
# }

Run the code above in your browser using DataLab