| setexp<- | R Documentation |
Setter function to set a variable of an experiment object
setexp(nl, var) <- value
nl |
nl object |
var |
valid experiment variable string |
value |
valid value for the specified variable |
# Example for Wolf Sheep Predation model from NetLogo models library:
nl <- nl(nlversion = "7.0.4",
nlpath = "/home/user/NetLogo 7.0.4/",
modelpath = "/home/user/NetLogo 7.0.4/models/Sample Models/Biology/Wolf Sheep Predation.nlogox",
jvmmem = 1024)
# Set experiment name
setexp(nl, "expname") <- "experimentName"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.