wamean: Weighted arithmetical mean

Description Usage Arguments Details Value See Also

View source: R/stats.R

Description

Take a numeric vector and return the weighted arithmetic mean.

Usage

1
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.


functClust documentation built on Dec. 2, 2020, 5:06 p.m.