weighted.median: Weighted median

Description Usage Arguments

View source: R/weighted-median.R

Description

Weighted median

Usage

1
weighted.median(x, weights = rep(1/length(x), length(x)), na.rm = FALSE)

Arguments

x

numeric vector.

weights

numeric vector of weights the same length as x giving the weights to use for elements of x.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.


twolodzko/twextras documentation built on May 3, 2019, 1:52 p.m.