View source: R/netlogo-helper.R
| NLWrapper.Model | R Documentation |
This wrapper prepares the environment and instantiates the model
NLWrapper.Model(netlogodir, modelfile, dataset, maxtime)
netlogodir |
The base path of NetLogo installation |
modelfile |
The absolute path for NetLogo model file |
dataset |
The names of model variables |
maxtime |
The total number of iterations |
## Not run:
rm(list=ls())
p<- "C:/Program Files/NetLogo 6.1.1/app"
output<- c("count sheep", "count wolves")
m<- file.path(p, "models", "Sample Models", "Biology", "Wolf Sheep Predation.nlogo")
o<- NLWrapper.Model(p, m, output, 150)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.