allRand: Data Randomization

View source: R/allRand.R

allRandR Documentation

Data Randomization

Description

Randomizes aliquots to batches.

Usage

allRand(dataR, batchTot, numQC, withinN, numMatch, chkRep)

Arguments

dataR

Data for randomization.

batchTot

c(batchTot1, batchTot2) sizes of plates, just use one plate per batch, batch size inclusive of QC samples.

numQC

Number of QC samples per batch.

withinN

Number of samples away that the QC samples must be from each other.

numMatch

Number of QC samples from a single mother within a batch.

chkRep

Check if there is a repeat of the groups within the batches.

Value

A dataset with serum order randomized.

Examples

serumRand <- allRand(dataR=serumMaster3,batchTot=c(40,44), numQC=2,withinN=2,numMatch=2,chkRep=1)

permRand documentation built on Sept. 9, 2025, 5:43 p.m.