R/quantiles.R

Defines functions IQR

Documented in IQR

#' IQR as done in the book
#'
#' @param x a data vector
#'
#' @return
#' @export
#'
IQR <-  function(x) {
  as.numeric(quantile(x, type=2)[4] - quantile(x, type=2)[2])
}
Emilostuff/dtuR documentation built on Dec. 17, 2021, 6:29 p.m.