Returns a string vector as proxy for comparing and sorting molecular formulas. Each string corresponds to a molecular formula and is derived by pasting the chemical elements and their counts. Counts are padded to ten digits. Carbon and hydrogen are renamed to 'AC' and 'AH', respectively, in order to preserve Hill ordering.

compare_mol_form(x)

Arguments

x

Vector of molecular formulas.

Value

A string vector.