tick: Tick

Description Usage Arguments Value Examples

View source: R/dist.R

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

1
tick(d, event)

Arguments

d

Dist object representing the distribution.

event

Numeric representing the observed event.

Value

Dist giving the updated distribution.

Examples

1
2
3
4
5
d <- Dist(5)
d <- tick(d, 1)
d <- tick(d, 1)
d <- tick(d, 3)
d # [2, 0, 1, 0]

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