Description Usage Arguments Details Value References Examples
Instantiate a repast model from the model dir without loading the scenario file.
1 |
modeldir |
The installation directory of some repast model |
maxtime |
The total simulated time |
dataset |
The name of any model aggregate dataset |
load |
If true instantiate model and load scenario |
This is the entry point for model execution. Typically
any model execution will start with this function which encapsulates
all low level calls for model initialization. In order to perform
simulations with repast from R code only Model
and a
few more function calls are required: Load
,
Run
. Finally the output of model is managed with
functions GetResults
and SaveSimulationData
.
Returns the instance of repast model
[1] North, M.J., N.T. Collier, and J.R. Vos, "Experiences Creating Three Implementations of the Repast Agent Modeling Toolkit," ACM Transactions on Modeling and Computer Simulation, Vol. 16, Issue 1, pp. 1-25, ACM, New York, New York, USA (January 2006).
1 2 3 4 | ## Not run:
d<- "C:/usr/models/your-model-directory"
m<- Model(d)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.