R/w_IQR.R

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

Try the declared package in your browser

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

declared documentation built on May 29, 2024, 12:09 p.m.