simplify_reaction: Simplify reaction objects

Description Usage Arguments Value Examples

View source: R/reaction.R

Description

Simplify reaction objects

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
simplify_reaction(x, ...)

## S3 method for class 'reaction'
simplify_reaction(x, ...)

## S3 method for class 'reaction'
remove_zero_counts(x, ...)

## S3 method for class 'reaction_list'
remove_zero_counts(x, ...)

## S3 method for class 'reaction_list'
simplify_reaction(x, ...)

Arguments

x

A reaction object

...

ignored

Value

A reaction object

Examples

1
2
3
4
5
r <- as_reaction("NH3 + H+ + H2O = H3O+ + NH3")
simplify_reaction(r)

r2 <- as_reaction("0NH3 + H+ + H2O = H3O+")
remove_zero_counts(r2)

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