dot-wmean: Compute weighted mean

.wmeanR Documentation

Compute weighted mean

Description

Compute the weighted mean of x.

Usage

.wmean(x, weights = NULL)

Arguments

x

numeric vector without NA to compute mean of

weights

weights vector (or NULL)

Value

weighted mean

Examples


.wmean(c(1, 2, 3))


WinVector/vtreat documentation built on Aug. 29, 2023, 4:49 a.m.