getIndicesConditions: Gets the conditions indices.

View source: R/utils.R

getIndicesConditionsR Documentation

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(conds, cond1, cond2)

Arguments

conds

A vector of strings containing the column "Condition" of the Biobase::pData().

cond1

A vector of Conditions (a slot in the Biobase::pData() table) for the condition 1.

cond2

A vector of Conditions (a slot in the Biobase::pData() table) for the condition 2.

Value

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

Author(s)

Florence Combes, Samuel Wieczorek

Examples

utils::data(Exp1_R25_pept, package='DAPARdata')
conds <- Biobase::pData(Exp1_R25_pept)[,"Condition"]
getIndicesConditions(conds, "25fmol", "10fmol")


samWieczorek/DAPAR documentation built on May 6, 2022, 5:30 p.m.