View source: R/empirical_dist.R
| sup.empirical_dist | R Documentation |
empirical_dist object x.Method for obtaining the support of empirical_dist object x.
## S3 method for class 'empirical_dist'
sup(x)
x |
The empirical distribution object. |
A finite_set object containing the support of x.
ed <- empirical_dist(c(1, 2, 2, 3))
s <- sup(ed)
s$has(2) # TRUE
s$has(4) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.