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 documentation built on May 29, 2024, 8:21 a.m.