filter_smeta {structToolbox} | R Documentation

## Filter by sample meta data

### Description

The data is filtered by so that the named levels of a factor are included/excluded from the dataset.

### Usage

    filter_smeta(mode = "include", levels, factor_name, ...)

### Arguments

`mode` | (character) Mode of action. Allowed values are limited to the following: `"include"`: Samples in the specified levels are retained. `"exclude"`: Samples in the specified levels are excluded. The default is `"include"`.
`levels` | (character) The level name(s) for filtering.
`factor_name` | (character) The name of a sample-meta column to use.
`...` | Additional slots and values passed to `struct_class`.

### Value

A `filter_smeta` object with the following `output` slots:

`filtered` | (DatasetExperiment)

### Examples

    D = MTBLS79_DatasetExperiment()
    M = filter_smeta(mode='exclude',levels='QC',factor_name='QC')
    M = model_apply(M,D)

[Package structToolbox version 1.6.1 Index]