Learn R Programming

pysd2r (version 0.1.0)

run_model: Runs a simulation model

Description

run_model() calls run in pysd and returns all the simulation output in tidy data format (tibble)

Usage

run_model(o)

Arguments

o

is the ipysd S3 object

Value

tibble containing the simulation results

Details

As it's a generic function, this call is dispatched to run_model.isdpy

Examples

Run this code
# NOT RUN {
target <- system.file("models/vensim", "Population.mdl", package = "pysd2r")
py <- pysd_connect()
py <- read_vensim(py, target)
results <- run_model(py)
# }

Run the code above in your browser using DataLab