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 Aug. 9, 2022, 5:08 p.m.

Related to rowPcts in HH...