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, ...)
ftmsData object that contains only the subset of the original data related to the samples or groups provided