is.subformula will test for all elements of one chemical formula (f_sub) to be present in another (f_main).
Supposed chemical sub formula.
Supposed chemical main formula.
To achieve the task formulas are split into elements and counted using CountChemicalElements.
Logical indicating if f_sub is potentially a subformula of f_main.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.