Method for obtaining the number of observations used to construct a empirical_dist object.

# S3 method for class 'empirical_dist'
nobs(object, ...)

Arguments

object

The empirical distribution object.

...

Additional arguments to pass (not used).

Value

Integer; number of observations.

Examples

ed <- empirical_dist(c(10, 20, 30, 40))
nobs(ed) # 4
#> [1] 4