Learn R Programming

FREddyPro (version 1.0)

cleanVarG: Clean a variable above a threshold

Description

Remove values based if they are greter than the given thresholds

Usage

cleanVarG(data, x, y = NULL, greaterThan = 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
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<-cleanVarG(data=fluxes,x="H",greaterThan=1500)
fluxes<-cleanVarG(data=fluxes,x="DOY",y="H",greaterThan=175)

Run the code above in your browser using DataLab