calc_average {compindexR} | R Documentation |
Calculate averages
Description
Calculate different types of averages
Usage
calc_average(x, avg_type = "simple")
Arguments
x |
A Dataframe |
avg_type |
Choosing average type. So far "simple", "geometric" and "harmonic" average are availableƧ |
Value
A data frame
Examples
x <- data.frame(rnorm(20),rnorm(20),rnorm(20),rnorm(20))
calc_average(x,avg_type = "simple")
[Package compindexR version 0.1.3 Index]