powered by
Calculate the arithmetic mean of some logratio data
average(x, i = NULL, newlabel = NULL)
an object of the same class as x
x
an object of class redux or logratios
redux
logratios
(optional) vector of sample indices
(optional) string with the new label to be assigned to the averaged values
data(Melbourne) K <- average(Melbourne$X,grep("K:",Melbourne$X$labels),newlabel="K-glass") plotcorr(K)
Run the code above in your browser using DataLab