Description Usage Arguments Value Author(s) See Also Examples
View source: R/ChemicalCuration.R
This function uses the formula functionality in RMassBank
to check
if a formula can be subtracted from another (i.e. is a subset of another), especially for
calculating adduct masses. This serves in the place of check_ded
from enviPat
,
which returns the opposite result.
1 | check_ded2(formula, deduct)
|
formula |
Molecular formula to check. |
deduct |
Deduct (molecular formula to subtract from |
Returns TRUE
if the deduct
can be subtracted from formula
, otherwise
FALSE
.
Emma Schymanski <emma.schymanski@uni.lu>
check_ded
, enviPat
, getSuspectFormulaMass
,
formulastring.to.list
.
1 2 3 | check_ded2("C6H6", "H2")
check_ded2("C6H6", "H3O")
check_ded2("C6H6","")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.