wameanR Documentation

Weighted arithmetical mean

Description

Take a numeric vector and return the weighted arithmetic mean.

Usage

wamean(x, w)

Arguments

x

a numeric vector.

w

a vector of numeric weights, of length(x).

Details

None.

Value

Return the weighted arithmetic mean of a numeric vector.

See Also

amean returns an arithmetic mean.
gmean returns a geometric mean.
wamean returns a weighted arithmetic mean.
wgmean returns a weighted geometric mean.