filter_by_name {structToolbox} | R Documentation

## Filter by name

### Description

A filter to subsample a DatasetExperiment object based on sample or feature name, id, row/column index or using a vector of TRUE/FALSE.

### Usage

    filter_by_name(mode = "exclude", dimension = "sample", names, ...)

### Arguments

`mode` | "include" or ["exclude"] to subsample a DatasetExperiment by including or excluding samples/features based on the provided labels
`dimension` | ["sample"] or "variable" to filter by sample or feature labels
`names` | the sample/feature identifiers to filter by. Can provide column names, column indices or logical.
`...` | additional slots and values passed to struct_class

### Value

struct object

### Examples

    D = MTBLS79_DatasetExperiment()
    M = filter_by_name(mode='exclude',dimension='variable',names=c(1,2,3))
    M = model_apply(M,D)

[Package structToolbox version 0.99.8 Index]