calc_average {compindexR} | R Documentation |
Calculate different types of averages
calc_average(x, avg_type = "simple")
x |
A Dataframe |
avg_type |
Choosing average type. So far "simple", "geometric" and "harmonic" average are availableƧ |
A data frame
x <- data.frame(rnorm(20),rnorm(20),rnorm(20),rnorm(20))
calc_average(x,avg_type = "simple")