Description Usage Arguments Value Examples
Construct impact equations for a given stock (level)
1 | struc_impacts_on(stk, inputs, simplify = TRUE)
|
stk |
A string that indicates the stock's name |
inputs |
A list of three elements (flows, pathways, velocities). One can
obtain this list automatically from the function |
simplify |
A boolean that indicates whether the analytical expression is algebraically simplified |
A data frame.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | flows <- data.frame(
stock = c("x", "y", "y", "z", "z"),
flow = c("f1", "f1", "f2", "f2", "f3"),
sign = c("-", "+", "-", "+", "-"),
equation = c("R*x*z", "R*x*z", "a*y", "a*y", "y"))
pathways <- data.frame(
from = c("z", "x", "z", "x", "y", "y", "z"),
to = c("x", "x", "y", "y", "y", "z", "z"),
through = c("f1", "f1", "f1", "f1", "f2", "f2", "f3"))
velocities <- data.frame(
stock = c("x", "y", "z"),
equation = c(
"-R * x * z",
" R * x * z - a * y",
"a * y - z"))
inputs <- list(flows = flows,
pathways = pathways,
velocities = velocities)
struc_impacts_on("x", inputs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.