rowPcts {HH} | R Documentation |
Row and columns percents
Description
Row and columns percents.
Usage
rowPcts(x, ...)
colPcts(x, ...)
Arguments
x |
numerical matrix |
... |
Additional arguments for |
Value
Calculate percents by row or column. The rowSums
or
colSums
are stored in the Sums
attribute of the result.
Author(s)
Richard M. Heiberger <rmh@temple.edu>
See Also
Examples
tmp <- matrix(1:12, 3, 4,
dimnames=list(c("A","B","C"),
c(letters[4:7])))
tmp
rowPcts(tmp)
colPcts(tmp)
[Package HH version 3.1-52 Index]