Learn R Programming

readsdr (version 0.3.0)

sd_impact_inputs: Construct inputs for performing structural analysis via the impact method

Description

Construct inputs for performing structural analysis via the impact method

Usage

sd_impact_inputs(desc_list)

Value

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).

Arguments

desc_list

Element 'description' from the list returned by read_xmile()

Examples

Run this code
  filepath  <- system.file("models/", "SIR.stmx", package = "readsdr")
  mdl       <- read_xmile(filepath)
  desc_list <- mdl$description
  sd_impact_inputs(desc_list)

Run the code above in your browser using DataLab