modify_equations | R Documentation |
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.
modify_equations(eqs, ...)
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. |
A modified list of calls containing equations to recalculate
gasanalyzer
data.
read_6800_equations()
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(paste0(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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.