View source: R/netlogo-helper.R
| NLWrapper.Run | R Documentation |
Executes a NetLogo Model using rNetLogo
NLWrapper.Run(obj, r = 1, seed = c())
obj |
The object retuned by NLWrapper.Model |
r |
The number of replications |
seed |
The collection of random seeds |
## Not run:
p<- "C:/Program Files/NetLogo 6.1.1/app"
m<- file.path(p, "models", "Sample Models", "Biology", "Wolf Sheep Predation.nlogo")
output<- c("count sheep", "count wolves")
o<- NLWrapper.Model(p, m, output, 150)
v<- NLWrapper.Run(o)
NLWrapper.Shutdown(o)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.