shuffBlockVec | R Documentation |
Randomly shuffle runs of 0s & 1s in a vector. Do not maintain the alternating order of 0s & 1s. We assume that the vector consists of 0s & 1s.
shuffBlockVec(x)
x |
a numeric vector |
a numeric vector
library(ARCOS)
set.seed(7)
x <- round(runif(20))
ARCOS:::shuffBlockVec(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.