R/cleanVar.r

Defines functions cleanVar

Documented in cleanVar

cleanVar <-
function (x, data, lessThan = NULL, greaterThan = NULL) 
{
    clean <- which(data[[x]] >= greaterThan | data[[x]] <= lessThan)
    data[[x]][clean] <- NA
    return(data)
}

Try the FREddyPro package in your browser

Any scripts or data that you put into this service are public.

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