powered by
empirical_dist
x
Method for obtaining the marginal distribution of empirical_dist object x.
# S3 method for empirical_dist marginal(x, indices)
An empirical_dist over the selected columns.
The empirical distribution object.
The indices of the marginal distribution to obtain.
mat <- matrix(1:12, ncol = 3) ed <- empirical_dist(mat) ed_marginal <- marginal(ed, c(1, 3)) dim(ed_marginal) # 2
Run the code above in your browser using DataLab