powered by
empirical_dist
x
Method for obtaining the support of empirical_dist object x.
# S3 method for empirical_dist sup(x)
A finite_set object containing the support of x.
finite_set
The empirical distribution object.
ed <- empirical_dist(c(1, 2, 2, 3)) s <- sup(ed) s$has(2) # TRUE s$has(4) # FALSE
Run the code above in your browser using DataLab