Learn R Programming

permRand (version 1.0.0)

allRand: Data Randomization

Description

Randomizes aliquots to batches.

Usage

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

Value

A dataset with serum order randomized.

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.

Examples

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

Run the code above in your browser using DataLab