Learn R Programming

AirSensor (version 1.0.8)

PurpleAirSoH_dailyPctDC: Daily DC Signal percentage

Description

This function calculates the daily percentage of DC signal recorded by the pm25_A, pm25_B, humidity, and temperature channels. The data are flagged as DC signal when the standard deviation of an hour of data from each channel equals zero. The number of hours with a DC signal are summed over the day and a daily DC percentage for each channel is returned.

This metric allows users to identify <U+201C>sticky values<U+201D>, or instances of a sensor continuously logging the same value. A high percent DC value indicates the likely occurrence of a <U+201C>sticky value<U+201D>, and a zero or low percent DC indicates that the sensor is recording dynamic data.

Usage

PurpleAirSoH_dailyPctDC(pat = NULL)

Arguments

pat

PurpleAir Timeseries pat object.

Examples

Run this code
# NOT RUN {
 
library(AirSensor)

tbl <- 
  example_pat_failure_A %>%
  PurpleAirSoH_dailyPctDC() 

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

Run the code above in your browser using DataLab