Learn R Programming

FREddyPro (version 1.0)

qcClean: Clean using QC flag

Description

Function cleaning data based on QC flags.

Usage

qcClean(var, qcVar, qc)

Arguments

var
The variable to clean.
qcVar
The associated QC flags variable.
qc
An integer indicating the QC flags to remove. It can be a single value or an array of values. Default value is 2.

Examples

Run this code
## Load the data
data(fluxes)

## Remove QC flags 1 and 2 for CO2
fluxes$co2_flux<-qcClean(fluxes$co2_flux,fluxes$qc_co2_flux,c(1,2))

Run the code above in your browser using DataLab