CLOSE {easyCODA} | R Documentation |
Closure of rows of compositional data matrix
Description
This function closes (or normalizes) the rows of a compositional data matrix, resulting in rows summing to 1.
Usage
CLOSE(x)
Arguments
x |
Compositional data matrix. |
Details
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.
Value
The closed compositional data matrix.
Author(s)
Michael Greenacre
References
Greenacre, M. (2018), Compositional Data Analysis in Practice, Chapman & Hall / CRC.
Examples
data(cups)
apply(cups, 2, sum)
cups <- CLOSE(cups)
apply(cups, 2, sum)
[Package easyCODA version 0.34.3 Index]