apply_lrapa: Apply LRAPA Corrections

Description Usage Arguments Value Source See Also Examples

View source: R/apply_lrapa.R

Description

Apply LRAPA correction factors to PurpleAir PM2.5 data. LRAPA established PM2.5 correction factors for PurpleAir's PM2.5 CF=ATM values. Unlike the EPA correction factors (apply_epa) which uses CF=1 PM2.5 values, the LRAPA correction factor uses CF=ATM values. More information on this variable can be found on the PurpleAir FAQ. It should also be noted that this correction factor might not apply to all airsheds, and was developed in Oregon, where (along with much of the Pacific Northwest) woodsmoke is a major contributor to PM2.5. Futhermore, this correction factor only reliably applies to PM2.5 values of ≤ 65 µg/m^3. For more information on the correction factor, see the LRAPA documentation.

Usage

1
apply_lrapa(dataset, by_day = TRUE, by_hour = FALSE, keep_cols = FALSE)

Arguments

dataset

The dataset for which to apply the correction factors to

by_day

Logical; average data by day

by_hour

Logical; average data by hour

keep_cols

Logical; Keep or disgard extra columns. If FALSE, only identifying columns and LRAPA-corrected columns will remain

Value

Dataframe with new column for LRAPA-corrected PM2.5:

pm25_lrapa

LRAPA-corrected PM2.5 value, calculated for values where PM2.5(CF=1) ≤ 65 µg/m^3 as 0.5 × PM2.5(CF=ATM) - 0.66

Source

https://www.lrapa.org/DocumentCenter/View/4147/PurpleAir-Correction-Summary

LRAPA documentation

See Also

Other PA functions: apply_corrections(), apply_epa(), apply_functions(), apply_qc()

Examples

1
2
apply_lrapa(july_api_full)
apply_lrapa(july_api_full, by_hour = TRUE, keep_cols = TRUE)

gmcginnis/AirVizR documentation built on Dec. 20, 2021, 11:49 a.m.