Calculate mean

mean_cpp(x)

Arguments

x

integer.

Value

a scalar value

Examples

mean_cpp(seq_len(10^6))
#> [1] 500000.5