filter_by_name {structToolbox} | R Documentation |
A filter to subsample a DatasetExperiment object based on sample or feature name, id, row/column index or using a vector of TRUE/FALSE.
filter_by_name(mode = "exclude", dimension = "sample", names, ...)
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 |
struct object
D = MTBLS79_DatasetExperiment() M = filter_by_name(mode='exclude',dimension='variable',names=c(1,2,3)) M = model_apply(M,D)