multiplyElements
Multiply the number of atoms of each element by a
constant, positive, integer
Examples
multiplyElements("H2O", 3)
#> [1] "H6O3"
multiplyElements(c("C6H12O6", "Na", "CH4O"), 2)
#> [1] "C12H24O12" "Na2" "C2H8O2"
multiplyElements
Multiply the number of atoms of each element by a
constant, positive, integer
multiplyElements("H2O", 3)
#> [1] "H6O3"
multiplyElements(c("C6H12O6", "Na", "CH4O"), 2)
#> [1] "C12H24O12" "Na2" "C2H8O2"