Learn R Programming

PAA (version 1.7.1)

shuffleData: Shuffles class labels to obtain random groups.

Description

Shuffles class labels of an EList or EListRaw object randomly to obtain two random groups (e.g. "A" and "B").

Usage

shuffleData(elist=NULL, n1=NULL, n2=NULL, label1="A", label2="B")

Arguments

elist
EList or EListRaw object (mandatory).
n1
sample size of random group 1 (mandatory).
n2
sample size of random group 2 (mandatory).
label1
class label of random group 1 (default: "A").
label2
class label of random group 2 (default: "B").

Value

  • EList or EListRaw object with random groups.

Details

Shuffles class labels of an EList or EListRaw object randomly to obtain two random groups (e.g. "A" and "B").

Examples

Run this code
cwd <- system.file(package="PAA")
load(paste(cwd, "/extdata/Alzheimer.RData", sep=""))
shuffleData(elist=elist, n1=20, n2=20, label1="A", label2="B")

Run the code above in your browser using DataLab