miniclo | R Documentation |
small function to close (aka normalize by proportions, aka total sum scaling)
a dataset to a constant k
(usually taken to be 1). After closure the row sums
of the dataset should sum to k
.
miniclo(c, k = 1)
c |
dataset to be closed |
k |
closure constant |
matrix (if c is a vector or matrix) or data.frame (if c is a data.frame)
c <- matrix(c(1,2,3,1,2,3,1,2,3), nrow = 3, byrow=TRUE)
miniclo(c)
miniclo(c, k=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.