Description Usage Arguments Value Examples
Coerce molecule(s) to character
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## S3 method for class 'molecule_single'
print(x, ...)
## S3 method for class 'mol'
print(x, ...)
## S3 method for class 'molecule_single'
as.character(x, wrap_super = identity,
wrap_sub = identity, wrap_sub_molecule = function(x) paste0("(", x,
")"), element_sep = "", ...)
## S3 method for class 'mol'
as.character(x, ...)
|
x |
A molecule(s) object |
... |
Ignored |
wrap_super, wrap_sub, element_sep, wrap_sub_molecule |
wrapper functions for fancy formatting (see chem_markdown) |
A character vector
1 2 3 4 | print(as_molecule_single("H2O"))
print(as_mol("H2O"))
as.character(NA_molecule_)
as.character(mol(NA_molecule_))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.