R/mol_form.R
hill_order.RdIf the vector contains carbon and hydrogen,
the result is c("C", "H", others).
If the vector contains carbon but not hydrogen,
the result is c("C", others).
If the formula contains neither carbon nor hydrogen,
the result is c(others). In any case, others is sorted alphabetically.
hill_order(el)
| f | Character vector to be sorted. |
|---|
A character vector sorted in Hill order.