set_item: Set Item

Description Usage Arguments Value Examples

View source: R/dist.R

Description

Generic function setting the number of observations made of event.

Usage

1
set_item(d, event, value)

Arguments

d

Dist object representing the distribution.

event

Numeric representing the observed event.

value

Numeric representing the number of observations.

Value

Dist giving the modified distribution.

Examples

1
2
3
4
5
d <- Dist(5)
d <- set_item(d, 1, 5)
d <- set_item(d, 3, 2)
d <- set_item(d, 5, 8)
d

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