assign_elemental_composition: Assign elemental composition to each peak/mass

View source: R/assign_elemental_composition.R

assign_elemental_compositionR Documentation

Assign elemental composition to each peak/mass

Description

Assigns an elemental composition class to each peak/mass, where possible, based which of: Carbon, Hydrogen, Oxygen, Nitrogen, Sulfur, and Phosporus are present in the peak/mass formula

Usage

assign_elemental_composition(ftmsObj)

Arguments

ftmsObj

an object of class 'peakData' or 'compoundData', typically a result of as.peakData or mapPeaksToCompounds.

Value

an object of the same class as ftmsObj with a column added in e_meta giving the class information for each peak/compound, when possible

Author(s)

Lisa Bramer


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