rowPcts | R Documentation |
Row and columns percents.
rowPcts(x, ...)
colPcts(x, ...)
x |
numerical matrix |
... |
Additional arguments for |
Calculate percents by row or column. The rowSums
or
colSums
are stored in the Sums
attribute of the result.
Richard M. Heiberger <rmh@temple.edu>
rowSums
tmp <- matrix(1:12, 3, 4,
dimnames=list(c("A","B","C"),
c(letters[4:7])))
tmp
rowPcts(tmp)
colPcts(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.