monitor_loadDaily: Load recent PM2.5 monitoring data

Description Usage Arguments Value See Also Examples

View source: R/monitor_loadDaily.R

Description

Wrapper function to load and combine recent data from AirNow, AIRSIS and WRCC:

1
2
3
4
airnow <- airnow_loadDaily()
airsis <- airsis_loadDaily()
wrcc <- wrcc_loadDaily()
ws_monitor <- monitor_combine(list(airnow, airsis, wrcc))

If dataDir is defined, data will be loaded from this local dirctory. Otherwise, data will be loaded from the monitoring data repository maintained by PWFSL.

The daily files loaded by this function are updated once a day, shortly after midnight and contain data for the previous 45 days.

For the most recent data, use monitor_loadLatest().

For data extended more than 45 days into the past, use monitor_load().

Currently supported parameters include the following:

  1. PM2.5

Avaialble RData files can be seen at: https://haze.airfire.org/monitoring/latest/RData/

Usage

1
2
3
4
5
monitor_loadDaily(
  parameter = "PM2.5",
  baseUrl = "https://haze.airfire.org/monitoring/latest/RData",
  dataDir = NULL
)

Arguments

parameter

Parameter of interest.

baseUrl

Base URL for 'daily' AirNow data files.

dataDir

Local directory containing 'daily' data files.

Value

A ws_monitor object with PM2.5 monitoring data.

See Also

monitor_load

monitor_loadLatest

monitor_loadAnnual

Examples

1
2
3
4
5
6
## Not run: 
monitor_loadDaily() %>%
  monitor_subset(stateCodes=CONUS) %>%
  monitor_map()

## End(Not run)

PWFSLSmoke documentation built on July 8, 2020, 7:19 p.m.