Skip to contents

Transform a molecular formula based on a specified adduct.

Usage

adductTransformMF(MF, adduct, adduct_rules_table = adduct_rules())

Arguments

MF

a molecular formula to transform

adduct

a transformation adduct

adduct_rules_table

adduct formation rules. Defaults to adduct_rules().

Value

A transformed molecular formula.

Examples

adductTransformMF('C6H12O6','[M+H]1+')
#> [1] "C6H13O6"