calc_element_ratios: Calculate Elemental Ratios

View source: R/calc_element_ratios.R

calc_element_ratiosR Documentation

Calculate Elemental Ratios

Description

Calculates the ratios of counts of specified element/isotope pairs.

Usage

calc_element_ratios(ftmsObj, ratios = NULL)

Arguments

ftmsObj

an object of class 'peakData' or 'compoundData', typically a result of as.peakData or mapPeaksToCompounds. e_meta must be present.

ratios

a matrix of size 2xN where N is the number of ratios to calculate. Defaults to calculating O:C, H:C, N:C, P:C, and N:P. As a matrix:

O H N P N
C C C C P

Value

an object of the same class as ftmsData with columns in e_meta giving elemental ratios

Author(s)

Lisa Bramer


EMSL-Computing/fticRanalysis documentation built on March 23, 2024, 8:36 p.m.