apply_qc: Apply Quality Control Filters

Description Usage Arguments Value See Also Examples

View source: R/apply_qc.R

Description

Apply basic quality control to a dataset: PM2.5 between 0 and 2000, temperature (ºF) between -40 and 185, and humidity (%) between 0 and 100. Also provides an option to average PM2.5 columns A and B of a dataset

Usage

1
apply_qc(dataset, drop_hi = input_drop_hi, avg_ab = TRUE, loc_data = raw_meta)

Arguments

dataset

The dataset for which to convert timezone data (column: "datetime")

drop_hi

Logical; drop monitors for which "flag_highValue" is TRUE in the defined meta data

avg_ab

Logical; create a column to average PM2.5 values of A & B monitors

loc_data

The dataset containing site IDs and flag_highValue

Value

Dataset with improbable values removed, and (optionally) additional columns for averaged A & B monitor values:

pm25_cf1

Rowwise mean of pm25_cf1_A and pm25_cf1_B

pm25_atm

Rowwise mean of pm25_atm_A and pm25_atm_B

See Also

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

Examples

1
apply_qc(july_api_raw, drop_hi = TRUE, loc_data = july_api_raw_meta)

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