filter_by_name: Filter by name

Description Usage Arguments Value Examples

View source: R/filter_by_name_class.R

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

1
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

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

structToolbox documentation built on Nov. 8, 2020, 6:54 p.m.