Estimates of the interquartile range for each row (column) in a matrix
Estimates of the interquartile range for each row (column) in a matrix.
rowIQRs(x, rows = NULL, cols = NULL, na.rm = FALSE, ...) colIQRs(x, rows = NULL, cols = NULL, na.rm = FALSE, ...) iqr(x, idxs = NULL, na.rm = FALSE, ...)
Henrik Bengtsson
set.seed(1) x <- matrix(rnorm(50 * 40), nrow = 50, ncol = 40) str(x) # Row IQRs q <- rowIQRs(x) print(q) q0 <- apply(x, MARGIN = 1, FUN = IQR) stopifnot(all.equal(q0, q)) # Column IQRs q <- colIQRs(x) print(q) q0 <- apply(x, MARGIN = 2, FUN = IQR) stopifnot(all.equal(q0, q))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.