Learn R Programming

rinform (version 1.0.2)

counts: Counts

Description

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

Usage

counts(d)

Arguments

d

Dist object representing the distribution.

Value

Numeric giving the number of observations.

Examples

Run this code
# NOT RUN {
d <- Dist(5)
counts(d) # 0

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

Run the code above in your browser using DataLab