ameanR Documentation

Arithmetic mean

Description

Take a numeric vector and return the arithmetic mean.

Usage

amean(x)

Arguments

x

a numeric vector.

Details

The function amean() works as the standard function stats::mean(), but with option na.rm = TRUE by default.

Value

Return the 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.