Learn R Programming

epitools (version 0.09)

table.margins: 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

Value

  • Returns original object with marginal totals

Details

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

References

none

See Also

See also margin.table

Examples

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

Run the code above in your browser using DataLab