Learn R Programming

rinform (version 1.0.2)

set_item: Set Item

Description

Generic function setting the number of observations made of event.

Usage

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

Run this code
# NOT RUN {
d <- Dist(5)
d <- set_item(d, 1, 5)
d <- set_item(d, 3, 2)
d <- set_item(d, 5, 8)
d
# }

Run the code above in your browser using DataLab