API to 'Python' Library 'pysd'
Formats a table of variable names
Gets the final time from the model
Gets the initial time from the model
Gets the current python configuration for reticulate
Gets the time step (DT) from the model
Creates an object to facilitate interaction with pysd
Loads a Vensim simulation file (mdl)
Loads a XMILE simulation file (.xmile)
Reloads the model from original mdl file
Runs a simulation model
Changes a model parameter
Sets the initial time, final time, and timestep
Using the R package 'reticulate', this package creates an interface to the 'pysd' toolset. The package provides an R interface to a number of 'pysd' functions, and can read files in 'Vensim' 'mdl' format, and 'xmile' format. The resulting simulations are returned as a 'tibble', and from that the results can be processed using 'dplyr' and 'ggplot2'. The package has been tested using 'python3'.