Movatterモバイル変換


[0]ホーム

URL:


readsdr

Codecov test coverageCRAN statusR-CMD-check

Overview

The goal of readsdr is to bridge the design capabilities fromspecialised System Dynamics software with the powerful numerical toolsoffered by R libraries. The package accomplishes this goal by parsing.xmile files (Vensim andStella models) into R objects toconstructnetworks (graph theory), ODEfunctions fordeSolve andStan.

Installation

You can install the released version of readsdr fromCRAN with:

install.packages("readsdr")

And the development version fromGitHub with:

# install.packages("devtools")devtools::install_github("jandraor/readsdr")

Usage

library(readsdr)filepath<-system.file("models/","SIR.stmx",package ="readsdr")mdl<-read_xmile(filepath)

For reading Vensim models, they must be exported as .xmile.

Tutorials

For information on how to use this package, please check:

Supported builtins

1 Restricted to Euler integration.

2 These functions cannot be part of more complexmathematical expressions. That is, the auxiliary variable must onlycontain one smoothing function andnothing else.

3 Seed is ignored.

Notes

Applications

This package has been instrumental in the following works:

Acknowledgments

Thanks to:

References

Duggan,J. (2016).System Dynamics Modeling with R. Springer.


[8]ページ先頭

©2009-2025 Movatter.jp