cleanVarL: Clean a variable below a threshold

Description Usage Arguments Author(s) Examples

View source: R/functions.r View source: R/cleanVarL.r

Description

Remove values based if they are greter or less than the given thresholds

Usage

1
cleanVarL(data, x, y = NULL, lessThan = NULL)

Arguments

data

The data frame

x

A character giving the name of the variable to clean

y

A second character giving the name of the variable to clean based on the selection of x variable

lessThan

A number giving the "less than" threshold for removing values from the variable

Author(s)

Georgios Xenakis

Examples

1
2
3
4
5
6
## Load the data
data(fluxes)

## Clean a variable
fluxes<-cleanVarL(data=fluxes,x="H",lessThan=-200)
fluxes<-cleanVarL(data=fluxes,x="DOY",y="H",lessThan=155)

Example output



FREddyPro documentation built on May 29, 2017, 7:22 p.m.