subset: Subset an ftmsData object according to sample or group

subset.peakDataR Documentation

Subset an ftmsData object according to sample or group

Description

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.

Usage

## 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, ...)

Arguments

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

Value

ftmsData object that contains only the subset of the original data related to the samples or groups provided


EMSL-Computing/fticRanalysis documentation built on Dec. 18, 2024, 9:51 p.m.