R/wIQR.R

#' @rdname weighted
#' @export
`wIQR` <- function (
    x, wt = NULL, na.rm = FALSE, ...
) {
    unname(unclass(diff (
        wquantile(
            x,
            wt = wt,
            probs = c(0.25, 0.75),
            na.rm = na.rm,
            names = FALSE,
            ... = ...
        )
    )))
}

#' @rdname declared_internal
#' @keywords internal
#' @export
`w_IQR` <- function (...) {
    wIQR(...)
}

Try the declared package in your browser

Any scripts or data that you put into this service are public.

declared documentation built on April 2, 2026, 5:07 p.m.