Learn R Programming

AirSensor (version 1.0.8)

PurpleAirSoH_dailyPctReporting: Daily reporting percentage

Description

The number of sensor readings recorded per hour are summed over the course of a calendar day. This is then divided by the number of samples the sensor would record in an ideal day (24 * 3600 / samplingInterval) to return a percentage of each day that the sensor is reporting data.

Usage

PurpleAirSoH_dailyPctReporting(pat = NULL, samplingInterval = 120)

Arguments

pat

PurpleAir Timeseries pat object.

samplingInterval

The number of seconds between samples when the sensor is operating optimally.

Examples

Run this code
# NOT RUN {
library(AirSensor)

tbl <- 
  example_pat %>%
  PurpleAirSoH_dailyPctReporting(80) 

timeseriesTbl_multiPlot(tbl, ylim = c(0,101))
# }

Run the code above in your browser using DataLab