powered by
Calculates marginal totals of a matrix, table, or array.
table.margins(x)
is a matrix, table, or array
Returns original object with marginal totals
none
See also margin.table
margin.table
# NOT RUN { x <- matrix(1:4, 2, 2) table.margins(x) # }
Run the code above in your browser using DataLab