rowPcts: Row and columns percents

rowPctsR Documentation

Row and columns percents

Description

Row and columns percents.

Usage

rowPcts(x, ...)
colPcts(x, ...)

Arguments

x

numerical matrix

...

Additional arguments for rowSums

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

rowSums

Examples

tmp <- matrix(1:12, 3, 4,
              dimnames=list(c("A","B","C"),
                            c(letters[4:7])))
tmp
rowPcts(tmp)
colPcts(tmp)

HH documentation built on May 29, 2024, 6:24 a.m.

Related to rowPcts in HH...