Learn R Programming

AirSensor (version 1.0.2)

sensor_loadLatest: Load hourly-aggregated PurpleAir data for a week

Description

A pre-generated airsensor object will be loaded containing data for the most recent 7 or 45-day interval.

Each airsensor object contains data from a named collection of PurpleAir sensors.

Usage

sensor_loadLatest(collection = "scaqmd", days = 7)

Arguments

collection

Name associated with the collection.

days

Number of days of data to include (7 or 45).

Value

An object of class "pa_timeseries".

See Also

sensor_load

sensor_loadMonth

pat_createAirSensor

Examples

Run this code
# NOT RUN {
library(AirSensor)

setArchiveBaseUrl("http://data.mazamascience.com/PurpleAir/v1")

sensor_loadLatest("scaqmd") %>%
  PWFSLSmoke::monitor_timeseriesPlot(style = 'gnats')
# }

Run the code above in your browser using DataLab