Learn R Programming

ProbBayes (version 1.1)

spinner_data: Simulate random data from a spinner

Description

Simulate random data from a spinner

Usage

spinner_data(regions, nsim=1000)

Arguments

regions

vector of integer values for the spins 1, 2, ...

nsim

number of spins

Value

A vector of random spins from the spinner

Examples

Run this code
# NOT RUN {
  regions <- c(2, 1, 1, 2)
  spinner_data(regions, nsim=20)
# }

Run the code above in your browser using DataLab