fCheckforQCFlags: Assign NA to bad flags

Description Usage Arguments

View source: R/fCheckforQCFlags.R

Description

Assigns NA to values that match a quality check flag threshold. For example, if the user specifies 'flag = c(2:3)', this function will assign NAs to any rows where the qc flag is either 2 or 3.

Usage

1
fCheckforQCFlags(y, qc_col, flag)

Arguments

y

a numeric vector of data.

qc_col

a numeric vector containing qc flag values (0 = measured, 1 = good gapfill, 2 = okay gapfill, 3 = poor gapfill).

flag

a user-specified qc threshold. All data that match this qc threshold are assigned a value of NA. If no qc value is available, the original data are retained.


ksmiff33/FluxSynthU documentation built on Dec. 15, 2020, 10:29 p.m.