filter_by_name: Filter by name

View source: R/filter_by_name_class.R

filter_by_nameR 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)


computational-metabolomics/structToolbox documentation built on Feb. 6, 2023, 2:43 p.m.