Skip to contents

Subsets a mass_dataset object by variables (i) and samples (j) using the [ operator. The method updates the corresponding slots in the returned object to keep the data internally consistent.

Usage

# S3 method for class 'mass_dataset'
x[i, j, drop = FALSE, ...]

Arguments

x

A mass_dataset object.

i

Row indices or variable identifiers to keep.

j

Column indices or sample identifiers to keep.

drop

Logical; if TRUE, allow base subsetting to simplify the extracted expression_data.

...

Additional arguments passed to base subsetting.

Value

A subsetted mass_dataset object, or a simplified extracted object if base subsetting returns a non-data-frame result.

Author

Xiaotao Shen xiaotao.shen@outlook.com