adduct-class | R Documentation |
Objects from this class are used to specify adduct information in an algorithm independent way.
adduct(...)
## S4 method for signature 'adduct'
show(object)
## S4 method for signature 'adduct'
as.character(x, format = "generic", err = TRUE)
x , object |
An |
format |
A
|
err |
If |
... |
Any of |
show(adduct)
: Shows summary information for this object.
as.character(adduct)
: Converts an adduct
object to a specified
character
format.
add,sub
A character
with one or more formulas to add/subtract.
molMult
How many times the original molecule is present in this molecule (e.g. for a dimer this would be ‘2’). Default is ‘1’.
charge
The final charge of the adduct (default ‘1’).
as.adduct
for easy creation of adduct
objects
and adduct utilities for other adduct functionality.
adduct("H") # [M+H]+
adduct(sub = "H", charge = -1) # [M-H]-
adduct(add = "K", sub = "H2", charge = -1) # [M+K-H2]+
adduct(add = "H3", charge = 3) # [M+H3]3+
adduct(add = "H", molMult = 2) # [2M+H]+
as.character(adduct("H")) # returns "[M+H]+"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.