R/getOutliers.r

Defines functions getOutliers

Documented in getOutliers

# wrapper function for outlier detection methods.
# 23.12.2009 version 1, mvdl
getOutliers <- function(y, method="I",  ...)
{
    if ( !(method %in% c("I","II") ) )
        stop("method not recognized (choose I or II)")
    out <- switch( method,
        I = getOutliersI(y, ...),
        II = getOutliersII(y, ...)
        )
    return(out)
}

Try the extremevalues package in your browser

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

extremevalues documentation built on July 1, 2020, 6:19 p.m.