getIndicesConditions {DAPAR} | R 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 `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

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

[Package DAPAR version 1.18.5 Index]