Detect elements in each column that are outside mean +/- n standard deviations and rows that contain at least one such element.

sd_outliers(x, n = 2)

outside_mean_pm_Nsd(x, n = 2)

Arguments

x

Matrix-like data or hyperSpec object.

n

A number of standard deviations.

Value

A list with these elements

  • matrix - a logical matrix, with TRUE for elements which are outside column mean +/- n standard deiations;

  • rows - a logical vector that indicate rows that have at least one such element.

See also

Author

Vilmantas Gegzna