subset.peakData | R Documentation |
Constructs a new ftmsData object that is a subset of the original
with only the specified samples or group. Exactly one of samples
or group
must be specified.
## S3 method for class 'peakData'
subset(x, samples = NA, groups = NA, check_rows = FALSE, ...)
## S3 method for class 'compoundData'
subset(x, samples = NA, groups = NA, check_rows = FALSE, ...)
## S3 method for class 'reactionData'
subset(x, samples = NA, groups = NA, check_rows = FALSE, ...)
## S3 method for class 'moduleData'
subset(x, samples = NA, groups = NA, check_rows = FALSE, ...)
x |
ftmsData object |
samples |
sample ID or vector of sample IDs |
groups |
group name or vector of group names |
check_rows |
logical indicating whether to remove peaks that have no observations after subsetting |
... |
other arguments |
ftmsData object that contains only the subset of the original data related to the samples or groups provided
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.