Skip to contents

Calculate outlier rate.

Usage

outlier_rate(object, nSD)

# Default S3 method
outlier_rate(object, nSD = 5)

# S3 method for class 'data.frame'
outlier_rate(object, nSD = 5)

# S3 method for class 'Metabolite'
outlier_rate(object, nSD = 5)

Arguments

object

An object, vector, data.frame, data.table or Metabolite.

nSD

N times of the SD as outliers.

Value

Returns a vector of the outlier rate.

A data.table of outlier rate.

Examples

# for a Metabolite object
data(df_plasma)
v <- outlier_rate(df_plasma)