shuffleData {PAA} | R Documentation

## 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"`).

### Details

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

### Value

`EList` or `EListRaw` object with random groups.

### Author(s)

Michael Turewicz, michael.turewicz@rub.de

### Examples

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

[Package PAA version 1.16.0 Index]