Internal function
Details
This function evaluates if the metadata has the expected column names. Then, it calculates the theoretical exact mass of the compound using the given formula and ionization mode to obtain a charged mass.
Required values
- Formula
character, compound chemical formula
- Ionization_mode
character, only Positive and Negative values are accepted