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))


vtreat documentation built on Aug. 20, 2023, 1:08 a.m.