reaction: Create reaction objects

Description Usage Arguments Value Examples

View source: R/reaction.R

Description

Create reaction objects

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
reaction(lhs, rhs, counts_lhs = 1, counts_rhs = 1, log_k = NA_real_,
  validate = TRUE)

reaction_list(..., validate = TRUE)

as_reaction(x, ...)

as.reaction(x, ...)

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

## S3 method for class 'mol'
as_reaction(x, coefficient = rep_len(1, length(x)),
  log_k = NA_real_, validate = TRUE, ...)

## S3 method for class 'formula'
as_reaction(x, log_k = NA_real_, validate = TRUE,
  ...)

## S3 method for class 'character'
as_reaction(x, log_k = NA_real_, validate = TRUE,
  ...)

as_reaction_list(x, ...)

as.reaction_list(x, ...)

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

## S3 method for class 'list'
as_reaction_list(x, validate = TRUE, ...)

## S3 method for class 'reaction'
as_reaction_list(x, validate = TRUE, ...)

## S3 method for class 'character'
as_reaction_list(x, validate = TRUE, ...)

Arguments

lhs

The lefthand side

rhs

The righthand side

counts_lhs

The counts for molecules on the lefthand side

counts_rhs

The counts for molecules on the righthand side

log_k

The base 10 logarithm of the reaction quotient

validate

Flag to validate molecules in the reaction

...

Passed to/from methods

x

An object to convert to a reaction object

coefficient

coefficient corresponding to as_reaction input

Value

A reaction object

Examples

1
reaction(c("H2O", "H+"), "H3O+", log_k = 14)

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