CLOSE {easyCODA} | R Documentation |
This function closes (or normalizes) the rows of a compositional data matrix, resulting in rows summing to 1.
CLOSE(x)
x |
Compositional data matrix. |
Compositional data carry relative information. It is sometimes required to close the data so that each row of observations sums to 1.
The function CLOSE
performs the closure.
The closed compositional data matrix.
Michael Greenacre
Greenacre, M. (2018), Compositional Data Analysis in Practice, Chapman & Hall / CRC.
data(cups) apply(cups, 2, sum) cups <- CLOSE(cups) apply(cups, 2, sum)