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(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.

### Author(s)

Florence Combes, Samuel Wieczorek

### Examples

    require(DAPARdata)
    data(Exp1_R25_pept)
    labels <- Biobase::pData(Exp1_R25_pept)[,"Label"]
    getIndicesConditions(labels, "25fmol", "10fmol")

[Package DAPAR version 1.12.11 Index]