as.character.reaction: Coerce reactions to a character vector

Description Usage Arguments Value Examples

View source: R/reaction.R

Description

Coerce reactions to a character vector

Usage

 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, ...)

Arguments

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

Value

A character vector

Examples

1
2
3
r <- as_reaction("2H2 + O2 = 2H2O")
as.character(r)
print(r)

paleolimbot/chemr documentation built on Sept. 11, 2021, 2:02 p.m.