tots: a simple function to add totals to a contingency table (or...

Description Usage Arguments Value Examples

Description

a simple function to add totals to a contingency table (or matrix) of any size. Especially useful for contingency table investigation.

Usage

1
tots(mat)

Arguments

mat

the name of the matrix, either labelled or not.

Value

a matrix with an additional row and column giving totals.

Examples

1
2
X = matrix(1:12,3)
tots(X)

helophilus/ColsTools documentation built on May 30, 2019, 4:03 p.m.