blockRandom | R Documentation |
Derive a randomization of a table.
blockRandom(S, x = NA, check = TRUE)
S |
a |
x |
the column name of the group used for the block randomization. |
check |
check if the size of each group is equal. |
returns a randomization order.
set.seed(1)
iris[c(1:2, 51:52, 101:103), ] |>
blockRandom(x = "Species", check=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.