normalizeR | R Documentation |
Normalize each row of a matrix by the sum of its elements
normalizeR(x, m, n)
x |
A matrix of dimensions |
m |
The number of rows of the matrix. |
n |
The number of columns of the matrix. |
A matrix of dimensions m X n
with each row summing up to 1.
## Not run: normalizeR(matrix(c(1,2,3,4), nrow=2, ncol = 2), 2, 2) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.