This function calculates the daily correlation values between
the pm25_A
, pm25_B
, humidity
, and temperature
channels. One correlation value for each channel pair will
be returned for each day.
SoH_correlation(pat = NULL, aggregationPeriod = "10 min")
pat | PurpleAir Timeseries pat object. |
---|---|
aggregationPeriod | The period of time over which to aggregate the data. Recommended that this value is at least greater than 2 min in order to have complete pairs between the A and B channels. If there is not a complete pair, the function will return an for that day. The smaller the aggregation period, the longer this function will take to run. The default is set to "10 min" for this reason. |
tbl <- example_pat %>% SoH_correlation(aggregationPeriod = "30 min") timeseriesTbl_multiPlot(tbl, ylim = c(-1,1), style = "line")