Learn R Programming

FREddyPro (version 1.0)

cleanVar: Clean a variable

Description

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

Usage

cleanVar(x, data, lessThan = NULL, greaterThan = NULL)

Arguments

x
A character giving the name of the variable to clean
data
The data frame
lessThan
A number giving the "less than" threshold for removing values from the variable
greaterThan
A number giving the "greater than" threshold for removing values from the variable

Examples

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

## Clean a variable
fluxes<-cleanVar("H",fluxes,lessThan=-200,greaterThan=1500)

Run the code above in your browser using DataLab