R/PurpleAirSoH_dailyCorrelation_OLD.R
PurpleAirSoH_dailyCorrelation_OLD.Rd
This function calculates the daily correlation values between
the pm25_A
, pm25_B
, humidity
, and temperature
channels. One correlation value for each channel pair except pm25_A
,
pm25_B
, and humidity
, temperature
will be returned for
each day. All returned values are expected to hover near 0 for a properly
functioning sensor.
PurpleAirSoH_dailyCorrelation_OLD(pat = NULL, aggregationPeriod = "10 min")
pat | PurpleAir Timeseries pat object. |
---|---|
aggregationPeriod | The period of time over which to aggregate the data. in order to create complete pairs between the A and B channels. If there is not a complete pair, the function will return an "NA" for that day. It is recommended that this value is between "2 min" and "1 hour" 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_failure_A %>% PurpleAirSoH_dailyCorrelation_OLD(aggregationPeriod = "30 min") timeseriesTbl_multiPlot( tbl, parameters = c("pm25_B_temperature_cor", "pm25_A_temperature_cor"), ylim = c(-1,1), style = "line" )