powered by
Alternative standardize using median, IQR and mad.
std_IQR(x, na.rm = TRUE, ...)std_mad(x, na.rm = TRUE, ...)
std_mad(x, na.rm = TRUE, ...)
Function std_IQR returns a numeric vector of the same length as x.
x
Function std_mad returns a numeric vector of the same length as x.
numeric vector
logical scalar, see quantile, median and mad. Default TRUE
TRUE
additional parameters of quantile and/or mad
std_IQR(rnorm(20)) std_mad(rnorm(20))
Run the code above in your browser using DataLab