getIndicesConditions: Gets the conditions indices.

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

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

Usage

1
getIndicesConditions(conds, cond1, cond2)

Arguments

conds

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

cond1

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

cond2

A vector of Conditions (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.

Author(s)

Florence Combes, Samuel Wieczorek

Examples

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

DAPAR documentation built on April 11, 2021, 6 p.m.