is.subformula.

Description

is.subformula will test for all elements of one chemical formula (f_sub) to be present in another (f_main).

Usage

1
is.subformula(f_sub, f_main)

Arguments

f_sub

Supposed chemical sub formula.

f_main

Supposed chemical main formula.

Details

To achieve the task formulas are split into elements and counted using CountChemicalElements.

Value

Logical indicating if f_sub is potentially a subformula of f_main.