Normalize a matrix column-wise by dividing each entry by its corresponding column sum.
normalize(x, removeZero = TRUE)
Arguments
x |
a matrix |
removeZero |
remove columns summing to zero. |
Value
a normalized matrix
Details
Columns summing to zero are removed by default.