View source: R/impact_inputs.R
sd_impact_inputs | R Documentation |
Construct inputs for performing structural analysis via the impact method
sd_impact_inputs(desc_list)
desc_list |
Element 'description' from the list returned by |
A list of three elements. The first element, flows
, is a data
frame that lists all the stock-flow links in the model. Further, this data
frame describes the equation that governs the link and whether the link is
an inflow (+) or an outflow (-). The second element, pathways
, is a
data frame that lists all the pathways among stocks. The third element,
velocities
, is a data frame in which each row corresponds to a
stock. Each row consists of two columns (name & equation).
filepath <- system.file("models/", "SIR.stmx", package = "readsdr")
mdl <- read_xmile(filepath)
desc_list <- mdl$description
sd_impact_inputs(desc_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.