View source: R/monoisotopicMassCalculator.R
monoisotopicMassCalculator | R Documentation |
This function calculates monoisotopic mass of a molecular formula
monoisotopicMassCalculator(MoleFormVec, massAbundanceList,
LElements = length(massAbundanceList))
MoleFormVec |
A numerical vector molecular formula |
massAbundanceList |
A list of isotopic mass and abundance of elements obtained from the 'element_sorter' function |
LElements |
length of elements |
The monoisotopic mass
Elements <- c("C", "H", "O")
MoleFormVec <- c(2, 6, 1) # C2H6O
EL_mass_abundance <- element_sorter(ElementList = Elements, alphabeticalOrder = FALSE)
massAbundanceList <- EL_mass_abundance[["massAbundanceList"]]
MImass <- monoisotopicMassCalculator(MoleFormVec, massAbundanceList)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.