modify_equations {gasanalyzer} | R Documentation |
Modify an existing list of equations with specific user-specified equations.
Description
This method allows replacing a specific equations in a list with
custom versions. Although it is possible to add custom equations using
create_equations()
, it can be useful to modify existing sets. It can also
be used to modify equations imported from an xlsx
file.
Usage
modify_equations(eqs, ...)
Arguments
eqs |
a list of calls for recomputing |
... |
custom equations. the arguments must tagged function expressions. The tags will be matched against the equation list specified in eqs, and matching expressions will be replaced. Additional expressions will be added to the list. Note that the function body must be wrapped in curly brackets. |
Value
A modified list of calls containing equations to recalculate
gasanalyzer
data.
See Also
Examples
exampledir <- system.file("extdata", package = "gasanalyzer")
# import factory calibration for example data:
import_factory_cals(exampledir)
# read data from a txt file:
li6800 <- read_6800_txt(file.path(exampledir, "lowo2"))
# create a default set of gas-exchange equations, for the Li-6800:
Eqs <- create_equations(c("default", "li6800"))
# replace the value for the leaf light absorptance:
Eqs <- modify_equations(Eqs, LeafQ.alpha = \() {0.86})
# apply:
li6800_recalc <- recalculate(li6800, Eqs)
li6800$LeafQ.alpha
li6800_recalc$LeafQ.alpha
[Package gasanalyzer version 0.4.1 Index]