Learn R Programming

rinform (version 1.0.2)

tick: Tick

Description

Generic function to make a single observation of event, and return the a modified distribution with the updated number of observations of said event.

Usage

tick(d, event)

Arguments

d

Dist object representing the distribution.

event

Numeric representing the observed event.

Value

Dist giving the updated distribution.

Examples

Run this code
# NOT RUN {
d <- Dist(5)
d <- tick(d, 1)
d <- tick(d, 1)
d <- tick(d, 3)
d # [2, 0, 1, 0]

# }

Run the code above in your browser using DataLab