transformationPossible: Transformation check

transformationPossibleR Documentation

Transformation check

Description

Check if a transformation between two molecular formulas is possible.

Usage

transformationPossible(
  from,
  to,
  transformation,
  transformation_rules_table = transformation_rules()
)

Arguments

from

molecular formula to be transformed

to

molecular formula product of the transformation

transformation

transformation to apply. As found in column MF Change of the table supplied to the arguement transformation_rules_table.

transformation_rules_table

the transformation rules table. Defaults to the returned value of transformation_rules(). Alternative tables should be supplied in the same format.

Value

TRUE/FALSE depending whether the transformation is possible

Examples

transformationPossible(
  'C12H22O11',
  'C6H12O6',
  'M + [H2]'
  )

jasenfinch/mzAnnotation documentation built on Feb. 25, 2023, 1:27 a.m.