Learn R Programming

rinform (version 1.0.2)

get_item: Get Item

Description

Generic function giving the number of observations made of event.

Usage

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

Run this code
# NOT RUN {
d <- Dist(c(5, 0, 3, 7, 18, 0))
get_item(d, 1) # 5
get_item(d, 4) # 7
# }

Run the code above in your browser using DataLab