normalize | R Documentation |
Normalize a matrix column-wise by dividing each entry by its corresponding column sum.
normalize(x, removeZero = TRUE)
x |
a matrix |
removeZero |
remove columns summing to zero. |
Columns summing to zero are removed by default.
a normalized matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.