getsim | R Documentation |
Getter function to get a variable of a simdesign object
getsim(nl, var)
nl |
nl object |
var |
valid simdesign variable string |
# Example for Wolf Sheep Predation model from NetLogo models library:
nl <- nl(nlversion = "6.0.3",
nlpath = "/home/user/NetLogo 6.0.3/",
modelpath = "/home/user/NetLogo 6.0.3/app/models/Sample Models/Biology/Wolf Sheep Predation.nlogo",
jvmmem = 1024)
# Set simulation seeds
setsim(nl, "simseeds") <- c(123, 456, 789)
# Set simulation seeds
getsim(nl, "simseeds")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.