order.formula(formula, as.formula = TRUE, as.list = FALSE)
"C6H6"
or list(C=6,H=6)
).TRUE
, the return value is returned as a string.
This is the default.TRUE
, the return value is returned in list
representation.list.to.formula
, add.formula
,
is.valid.formula
#
order.formula("H4C9")
order.formula("C2N5HClBr")
Run the code above in your browser using DataLab