Skip to contents

Setter function to set a variable of a simdesign object

Usage

setsim(nl, var) <- value

Arguments

nl

nl object

var

valid simdesign variable string

value

valid value for the specified variable

Examples

# 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 simulation seeds
setsim(nl, "simseeds") <- c(123, 456, 789)