monitor_loadAnnual: Load annual PM2.5 monitoring data

Description Usage Arguments Value See Also Examples

View source: R/monitor_loadAnnual.R

Description

Wrapper function to load and combine annual data from AirNow, AIRSIS and 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 annual files loaded by this function are updated on the 15'th of each month and cover the period from the beginning of the year to the end of the last month.

For data during the last 45 days, use monitor_loadDaily().

For the most recent data, use monitor_loadLatest().

Currently supported parameters include the following:

  1. PM2.5

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

Usage

1
2
3
4
5
6
7
monitor_loadAnnual(
  year = NULL,
  parameter = "PM2.5",
  baseUrl = "https://haze.airfire.org/monitoring",
  dataDir = NULL,
  aqsPreference = "airnow"
)

Arguments

year

Desired year (integer or character representing YYYY).

parameter

Parameter of interest.

baseUrl

Base URL for data files.

dataDir

Local directory containing 'daily' data files.

aqsPreference

Preferred data source for AQS data when annual data files are available from both 'epa' and 'airnow'.

Value

A ws_monitor object with PM2.5 monitoring data.

See Also

monitor_loadDaily

monitor_loadLatest

Examples

1
2
3
4
5
6
## Not run: 
monitor_loadAnnual(2014) %>%
  monitor_subset(stateCodes='MT', tlim=c(20140801,20140901)) %>%
  monitor_map()

## End(Not run)

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