Learn R Programming

algebraic.dist (version 0.9.1)

sup.empirical_dist: Method for obtaining the support of empirical_dist object x.

Description

Method for obtaining the support of empirical_dist object x.

Usage

# S3 method for empirical_dist
sup(x)

Value

A finite_set object containing the support of x.

Arguments

x

The empirical distribution object.

Examples

Run this code
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