margin.tables | R Documentation |
Get the marginal distributions
## S3 method for class 'tables' margin(x, margin = NULL, order = TRUE, ...)
x |
an object of class |
margin |
integer vector giving margin to be calculated (1 for rows, etc.) |
order |
logical indicating whether resulting indices
should be in the same order as stated in |
... |
other arguments to function |
Calculates marginal distributions for each entry in a probMat
.
An object of class tables
consisting of the required marginal
distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.