Computes the arithmetic mean of the values of a vector.

ct_mean(x)

Arguments

x

A numeric vector.

Value

A number - the mean of the numbers in x.

Examples

ct_mean(c(10,50,12,43))
#> [1] 28.75