Learn R Programming

DAPAR (version 1.4.7)

getIndicesConditions: Gets the conditions indices.

Description

Returns a list for the two conditions where each slot is a vector of indices for the samples.

Usage

getIndicesConditions(labels, cond1, cond2)

Arguments

labels
A vector of strings containing the column "Label" of the pData().
cond1
A vector of Labels (a slot in the pData() table) for the condition 1.
cond2
A vector of Labels (a slot in the pData() table) for the condition 2.

Value

A list with two slots iCond1 and iCond2 containing respectively the indices of samples in the pData() table of the dataset.

Examples

Run this code
data(UPSpep25)
labels <- Biobase::pData(UPSpep25)[,"Label"]
getIndicesConditions(labels, "25fmol", "10fmol")

Run the code above in your browser using DataLab