View source: R/pat_toMonitor.R
pat_toMonitor | R Documentation |
Enhance an hourly PurpleAir Timeseries pat object created
with pat_createHourly()
and create an object of class mts_monitor
for use with the AirMonitor package.
pat_toMonitor(pat = NULL, applyCorrection = TRUE)
pat |
Previously generated pat object. |
applyCorrection |
Logical specifying whether to apply the EPA correction algorithm. (See pat_applyCorrection.) |
An AirMonitor package mts_monitor object.
# Fail gracefully if any resources are not available
try({
# AirSensor2 package
library(AirSensor2)
monitor <-
example_pat_epa %>%
pat_toMonitor()
AirMonitor::monitor_timeseriesPlot(monitor, shadedNight = TRUE)
}, silent = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.