View source: R/empirical_dist.R
| dim.empirical_dist | R Documentation |
empirical_dist object.Method for obtaining the dimension of a empirical_dist object.
## S3 method for class 'empirical_dist'
dim(x)
x |
The object to obtain the dimension of. |
Integer; the number of dimensions.
ed1 <- empirical_dist(c(1, 2, 3))
dim(ed1) # 1
ed2 <- empirical_dist(matrix(1:6, ncol = 2))
dim(ed2) # 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.