Loads monitoring data for a given time range. Data from AirNow, AIRSIS and WRCC are combined into a single ws_monitor object.
Archival datasets are joined with 'daily' and 'latest' datasets as needed to satisfy the requested date range.
monitor_load( startdate = NULL, enddate = NULL, monitorIDs = NULL, parameter = "PM2.5", baseUrl = "https://haze.airfire.org/monitoring", dataDir = NULL, aqsPreference = "airnow" )
Desired start date (integer or character in ymd[hms] format
Desired end date (integer or character in ymd[hms] format
Optional vector of monitorIDs.
Parameter of interest.
Base URL for data files.
Local directory containing monitoring data files.
Preferred data source for AQS data when annual data files are available from both `epa` and `airnow`.
A ws_monitor object with PM2.5 monitoring data.
Joining datasets is a computationally expensive task when many monitors
are involved. It is highly recommend that
monitorIDs be specified when
loading recent data with this function.