pasteElements creates a chemical formula from element counts (such as
returned by countElements()).
Value
character() with the chemical formulas.
Examples
elements <- c("C" = 6, "H" = 12, "O" = 6)
pasteElements(elements)
#> [1] "C6H12O6"
pasteElements creates a chemical formula from element counts (such as
returned by countElements()).
character() with the chemical formulas.
elements <- c("C" = 6, "H" = 12, "O" = 6)
pasteElements(elements)
#> [1] "C6H12O6"