airnow_loadLatest: Load most recent AirNow monitoring data

Description Usage Arguments Value See Also Examples

View source: R/airnow_loadLatest.R

Description

Loads pre-generated .RData files containing the most recent AirNow data.

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 files loaded by this function are updated multiple times an hour and contain data for the previous 10 days.

For daily updates covering the most recent 45 days, use airnow_loadDaily().

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

AirNow parameters include the following:

  1. PM2.5

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

Usage

1
2
3
4
5
airnow_loadLatest(
  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 AirNow data.

See Also

airnow_loadAnnual

airnow_loadDaily

Examples

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

## End(Not run)

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