Learn R Programming

functClust (version 0.1.6)

wamean: 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).

Value

Return the weighted arithmetic mean of a numeric vector.

Details

None.

See Also

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