View source: R/empirical_dist.R
| marginal.empirical_dist | R Documentation |
empirical_dist object
x.Method for obtaining the marginal distribution of empirical_dist object
x.
## S3 method for class 'empirical_dist'
marginal(x, indices)
x |
The empirical distribution object. |
indices |
The indices of the marginal distribution to obtain. |
An empirical_dist over the selected columns.
mat <- matrix(1:12, ncol = 3)
ed <- empirical_dist(mat)
ed_marginal <- marginal(ed, c(1, 3))
dim(ed_marginal) # 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.