blockRandom {protViz} | R Documentation |
Derive a randomization of a table.
Description
Derive a randomization of a table.
Usage
blockRandom(S, x = NA, check = TRUE)
Arguments
S |
a |
x |
the column name of the group used for the block randomization. |
check |
check if the size of each group is equal. |
Value
returns a randomization order.
Examples
set.seed(1)
iris[c(1:2, 51:52, 101:103), ] |>
blockRandom(x = "Species", check=FALSE)
[Package protViz version 0.7.9 Index]