blockRandom: Derive a randomization of a table.

View source: R/queue.R

blockRandomR Documentation

Derive a randomization of a table.

Description

Derive a randomization of a table.

Usage

blockRandom(S, x = NA, check = TRUE)

Arguments

S

a data.frame

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)

protViz/protViz documentation built on Jan. 19, 2024, 8:10 a.m.