PurpleAirSoH_dailyPctDC: Daily DC Signal percentage

View source: R/PurpleAirSoH_dailyPctDC.R

PurpleAirSoH_dailyPctDCR Documentation

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 “sticky values”, or instances of a sensor continuously logging the same value. A high percent DC value indicates the likely occurrence of a “sticky value”, 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

 
library(AirSensor)

tbl <- 
  example_pat %>%
  PurpleAirSoH_dailyPctDC() 

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

MazamaScience/AirSensor documentation built on April 28, 2023, 11:16 a.m.