filterSamples {yarn} | R Documentation

## Filter samples

### Description

Filter samples

### Usage

    filterSamples(obj, ids, groups = colnames(obj), keepOnly = FALSE)

### Arguments

`obj` | ExpressionSet object.
`ids` | Names found within the groups labels corresponding to samples to be removed
`groups` | Vector of labels for each sample or a column name of the phenoData slot for the ids to filter. Default is the column names.
`keepOnly` | Filter or keep only the samples with those labels.

### Value

Filtered ExpressionSet object

### Examples

    data(skin)
    filterSamples(skin,ids = "Skin - Not Sun Exposed (Suprapubic)",groups="SMTSD")
    filterSamples(skin,ids=c("GTEX-OHPL-0008-SM-4E3I9","GTEX-145MN-1526-SM-5SI9T"))

[Package yarn version 1.6.0 Index]