apply_qc: Check and Set Quality Flag

Description Usage Arguments Details Value

Description

Generate new vector from data and quality flag column. Adapted from fSetQF in the package REddyProc.

Usage

1
apply_qc(x, qc_flag = NULL, qc_val = 0)

Arguments

qc_val

The numeric value of quality flag for _good_ data, other data is set to missing.

data

A data frame.

var

A numeric vector, the variable to be filtered.

qc_var

A numeric vector, the quality flag of variable to be filtered.

Details

The quality flag will be applied to variable - unless the quality flag variable is set to NULL.

Value

A numeric vector with _good_ data.


grahamstewart12/tidyflux documentation built on June 4, 2019, 7:44 a.m.