average {ArArRedux} | R Documentation |
Calculate the arithmetic mean of some logratio data
average(x, i = NULL, newlabel = NULL)
x |
an object of class |
i |
(optional) vector of sample indices |
newlabel |
(optional) string with the new label to be assigned to the averaged values |
an object of the same class as x
data(Melbourne)
K <- average(Melbourne$X,grep("K:",Melbourne$X$labels),newlabel="K-glass")
plotcorr(K)