counts: Counts

Description Usage Arguments Value Examples

View source: R/dist.R

Description

Generic function to return the number of observations made thus far.

Usage

1
counts(d)

Arguments

d

Dist object representing the distribution.

Value

Numeric giving the number of observations.

Examples

1
2
3
4
5
d <- Dist(5)
counts(d) # 0

d <- Dist(c(1, 0, 3, 2))
counts(d) # 6

rinform documentation built on April 1, 2018, 12:12 p.m.