Learn R Programming

BNDataGenerator (version 1.0)

toss_value: Tossing a Cardinality

Description

Sets up a sample space for the experiment of tossing a cardinality repeatedly with the outcomes "Values".

Usage

toss_value(times, num_of_cases, makespace=FALSE)

Arguments

times
Number of tosses.
num_of_cases
Cardinality.
makespace
Logical.

Value

A data frame, with an equally likely probs column if makespace is TRUE.

Examples

Run this code
	toss_value(1, 3)
	toss_value(2, 3)
	toss_value(3, 4, makespace = TRUE)

Run the code above in your browser using DataLab