ComplexIN | R Documentation |
ComplexIN
computes the aggregation of a set of index numbers using the arithmetic, geometric or harmonic means.
ComplexIN(data, means = c("arithmetic", "geometric", "harmonic"), zero.rm = TRUE,
na.rm = TRUE, ...)
data |
Data frame containing, the index numbers to aggregate. |
means |
Character vector with the name of the mean to compute. |
zero.rm |
Logical string for geometric and harmonic means. |
na.rm |
Logical value indicating whether NA values should be stripped before the computation proceeds. It is |
... |
Further arguments passed to or from other methods. |
Sindex
, Deflat
, priceIndexNum
.
Matrix with as many rows as columns of x
and as many columns as means
selected.
df <- data.frame(Index=round(runif(12,80,105),2))
ComplexIN(df, means = c("arithmetic", "geometric", "harmonic"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.