powered by
Creates a pm25 timeseries by averaging aggregated data from the A and B channels and applying the following QC logic:
pm25
Create pm25 by averaging the A and B channel aggregation means
Invalidate data where: (min_count < 20)
No further QC
PurpleAirQC_hourly_AB_00(pat = NULL, min_count = 20, returnAllColumns = FALSE)
A PurpleAir timeseries object.
Aggregation bins with fewer than min_count measurements will be marked as NA.
min_count
NA
Logical specifying whether to return all columns of statistical data generated for QC algorithm or just the final pm25 result.
Data frame with columns datetime and pm25.
datetime
# NOT RUN { library(AirSensor) df_00 <- example_pat %>% pat_qc() %>% PurpleAirQC_hourly_AB_00() names(df_00) plot(df_00, pch = 16, cex = 0.8, col = "red") # }
Run the code above in your browser using DataLab