View source: R/molecular_formula_library_generator.R
molecular_formula_library_generator | R Documentation |
This function generates an efficient database for molecular formula matching against a database.
molecular_formula_library_generator(entire_molecular_formulas)
entire_molecular_formulas |
A string vector of molecular formulas (redundancy is allowed) |
A vector of frequency of molecular formulas in the database.
entire_molecular_formulas <- c("C2H6O", "C2H6O", "C2H6O", "C2H6O", "CH4O", "CH4O",
"CH4O", "NH4", "C6H12O6")
db <- molecular_formula_library_generator(entire_molecular_formulas)
freq <- db[c("C6H12O6", "CH4O")]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.