Learn R Programming

FREddyPro (version 1.0)

cleanVarL: Clean a variable below a threshold

Description

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

Usage

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

Examples

Run this code
## 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)

Run the code above in your browser using DataLab