get_item: Get Item

Description Usage Arguments Value Examples

View source: R/dist.R

Description

Generic function giving the number of observations made of event.

Usage

1
get_item(d, event)

Arguments

d

Dist object representing the distribution.

event

Numeric representing the observed event.

Value

Numeric giving the number of observation of event.

Examples

1
2
3
d <- Dist(c(5, 0, 3, 7, 18, 0))
get_item(d, 1) # 5
get_item(d, 4) # 7

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