getOutliers: Find Outliers

View source: R/getOutliers.R

getOutliersR Documentation

Find Outliers

Usage

getOutliers(
  data_dt,
  col_v,
  type_v = c("mean", "mad", "dmad", "iqr"),
  by_v = NULL,
  mergeCol_v = NULL,
  scale_v = NULL,
  verbose_v = T
)

Arguments

data_dt

data.table containing distribution to search for

col_v

column name that contains data

type_v

vector indicating which outlier method(s) to use. Can be any combination of "mean", "mad", "dmad", and "iqr". Can also be 'lt:colName' 'gt:val:colName' indicating less than or greater than val in column colName

by_v

column name indicating grouping variable. Default is no grouping.

mergeCol_v

column name(s) to merge on if doing dmad.

scale_v

vector indicating whether to scale data or not. NULL (default) is no scale. "log10", "log2", and "ln" are acceptable values.

verbose_v

logical. TRUE - print results of each type_v in format "Found

Get outliers from data.


weshorton/wrh.rUtils documentation built on Oct. 28, 2024, 7:24 a.m.