subset_samples-mSet-method: Subset an mSet object

Description Usage Arguments Value

Description

The subset_samples() and subset_features() functions gets a subset of an mSet object either by samples or features. The two functions can either take character vectors of sample/feature names, logical values, or integer indices to specify the samples or features to subset.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## S4 method for signature 'mSet,character'
subset_samples(x, samples)

## S4 method for signature 'mSet,logical'
subset_samples(x, samples)

## S4 method for signature 'mSet,integer'
subset_samples(x, samples)

## S4 method for signature 'mSet,character'
subset_features(x, features)

## S4 method for signature 'mSet,logical'
subset_features(x, features)

## S4 method for signature 'mSet,integer'
subset_features(x, features)

Arguments

x

An mSet-class or derived object

samples

The samples to subset. Can be character, logical, or integers.

features

The features to subset. Can be character, logical, or integers.

Value

An mSset-class or derived object


zhuchcn/Metabase documentation built on July 23, 2019, 1:36 p.m.