powered by
Derive a randomization of a table.
blockRandom(S, x = NA, check = TRUE)
returns a randomization order.
a data.frame
data.frame
the column name of the group used for the block randomization.
check if the size of each group is equal.
set.seed(1) iris[c(1:2, 51:52, 101:103), ] |> blockRandom(x = "Species", check=FALSE)
Run the code above in your browser using DataLab