Setter function to set a variable of an experiment object
setexp(nl, var) <- value
nl object
valid experiment variable string
valid value for the specified variable
# NOT RUN {
# 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 experiment name
setexp(nl, "expname") <- "experimentName"
# }
Run the code above in your browser using DataLab