Learn R Programming

functClust (version 0.1.6)

mean_fct: Switch mean function.

Description

Switch for arithmetic or geometric mean according to opt.mean = "amean" or opt.mean = "gmean", respectively.

Usage

mean_fct(x, opt.mean = c("amean", "gmean"))

Arguments

x

a numeric vector.

opt.mean

equals to "amean" or "gmean" according to that mean value must be computed with arithmetic or geometric formula, respectively. There is no default value.

Value

Return the arithmetic or geometric mean of the numeric vector x according to opt.mean = "amean" or opt.mean = "gmean".

Details

None.