table.margins {epitools}R Documentation

Marginal totals of a table

Description

Calculates marginal totals of a matrix, table, or array.

Usage

table.margins(x)

Arguments

x

is a matrix, table, or array

Details

Calculates marginal totals of a matrix, table, or array.

Value

Returns original object with marginal totals

Author(s)

Tomas Aragon, aragon@berkeley.edu, http://www.phdata.science

References

none

See Also

See also margin.table

Examples

x <- matrix(1:4, 2, 2)
table.margins(x)


[Package epitools version 0.5-10.1 Index]