Skip to main content

builtin_weighted_mean

Function builtin_weighted_mean 

Source
fn builtin_weighted_mean(
    args: &[RValue],
    named: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Weighted arithmetic mean.

@param x numeric vector @param w numeric vector of weights (same length as x) @param na.rm logical; if TRUE, remove NAs before computing @return scalar double