This function calculates the daily percentage of DC signal recorded by the pm25_A, pm25_B, humidity, and temperature channels. Each day is broken up into individual chunks defined by testPeriod. The data are flagged as DC signal when the standard deviation of the data from each channel equals zero over a testPeriod. The number of chunks with a DC signal are summed over the day and a daily DC percentage is returned.

SoH_dailyPctDC(pat = NULL, testPeriod = "30 min")

Arguments

pat

PurpleAir Timeseries pat object.

testPeriod

The period of time over which to test for a DC signal. Choose from an hour scale time period or less, i.e., "10 min", "30 min", or "1 hour".

Examples

tbl <- example_pat_failure_A %>% SoH_dailyPctDC(testPeriod = "30 min") timeseriesTbl_multiPlot(tbl, ylim = c(0,100))