Description Usage Arguments Value Examples
Coerce reactions to a character vector
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## S3 method for class 'reaction'
as.character(x, equals_sign = "=",
wrap_coeff = identity, wrap_super = identity, wrap_sub = identity,
mol_sep = " + ", ...)
## S3 method for class 'reaction_list'
as.character(x, ...)
## S3 method for class 'reaction'
print(x, ...)
## S3 method for class 'reaction_list'
print(x, ...)
|
x |
A reaction object |
equals_sign, mol_sep |
An equals/plus sign to use for the reaction |
wrap_coeff |
Wrap coefficients for fancy formatting |
wrap_super, wrap_sub |
Wrap super/subscript for fancy formatting |
... |
Ignored |
A character vector
1 2 3 | r <- as_reaction("2H2 + O2 = 2H2O")
as.character(r)
print(r)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.