Description Usage Arguments Value Author(s) Examples
Simulate random data from a spinner
1 | spinner_data(regions, nsim=1000)
|
regions |
vector of integer values for the spins 1, 2, ... |
nsim |
number of spins |
A vector of random spins from the spinner
Jim Albert
1 2 | sp <- c(2, 1, 1, 2)
spinner_data(sp, nsim=20)
|
Loading required package: LearnBayes
Loading required package: ggplot2
Loading required package: gridExtra
Loading required package: dplyr
Attaching package: 'dplyr'
The following object is masked from 'package:gridExtra':
combine
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Loading required package: shiny
[1] 4 4 1 4 3 4 4 1 1 2 2 1 4 3 1 2 2 4 1 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.