get_monitor_daterange: get_monitor_daterange

View source: R/monitors.R

get_monitor_daterangeR Documentation

get_monitor_daterange

Description

For the specified date range and US states, downloads AirNow, AirSIS, or WRCC data from the AirFire archive.

Usage

get_monitor_daterange(start, end, states, mon_source = "airnow")

Arguments

start

Date The earliest date to search

end

Date The latest date to search. Must be in the same calendar year as start.

states

character The states to include as a vector of two-character state abbreviations

mon_source

character The monitor source type among "airnow", "airsis", or "wrcc"

Value

monitoring data for the specified dates and locations as SpatialPointsDataFrame

Examples

dt1 <- as.Date("2018-11-01") dt2 <- as.Date("2018-11-30") 
an_ws <- get_monitor_daterange(dt1, dt2, c("CA", "NV"), "airnow")

raffscallion/rapidfire documentation built on June 1, 2025, 2:04 p.m.