mean_fct: Switch mean function.

Description Usage Arguments Details Value

View source: R/stats.R

Description

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

Usage

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

Details

None.

Value

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


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