powered by
empirical_dist
Method for obtaining the number of observations used to construct a empirical_dist object.
# S3 method for empirical_dist nobs(object, ...)
Integer; number of observations.
The empirical distribution object.
Additional arguments to pass (not used).
ed <- empirical_dist(c(10, 20, 30, 40)) nobs(ed) # 4
Run the code above in your browser using DataLab