
Last chance! 50% off unlimited learning
Sale ends in
Simulate random data from a spinner
spinner_data(regions, nsim=1000)
vector of integer values for the spins 1, 2, ...
number of spins
A vector of random spins from the spinner
# NOT RUN {
regions <- c(2, 1, 1, 2)
spinner_data(regions, nsim=20)
# }
Run the code above in your browser using DataLab