Learn R Programming

AirSensor (version 1.0.2)

PurpleAirSoH_dailyOtherFit: Daily fit values

Description

This function calculates a daily linear model between the pm25_A, pm25_B, humidity, and temperature channels. One r-squared value for each channel pair except pm25_A, pm25_B, and humidity, temperature will be returned for each day. All returned values are expected to hover near 0 for a properly functioning sensor.

Usage

PurpleAirSoH_dailyOtherFit(pat = NULL)

Arguments

pat

PurpleAir Timeseries pat object.

Examples

Run this code
# NOT RUN {
library(AirSensor)
 
tbl <- 
  example_pat_failure_A %>%
  PurpleAirSoH_dailyOtherFit() 
  
timeseriesTbl_multiPlot(
  tbl, 
  ncol = 2,
  ylim = c(0,1)
)

timeseriesTbl_multiPlot(
  tbl, 
  autoRange = TRUE
)

# }

Run the code above in your browser using DataLab