remove_outliers: a function for removing outliers based on (sd and IQR)

Description Usage Arguments Value

View source: R/remove_outliers.R

Description

This was modified by VK, to use (sd if IQR is less than SD) since R cannot calculate sd when there is only one numner present or of all numbers are NA, I added the condition that if is.na(sd(x)) then next. Everything works!!!

Usage

1
remove_outliers(dt, list, stdv, na.rm = TRUE, ...)

Arguments

dt

The data

list

The list

stdv

The stdv

na.rm

If TRUE, remove NAs

Value

dt The outlier-removed data


dleelab/KompUtils documentation built on May 13, 2017, 3:31 a.m.