nlrx (version 0.4.1)

getnl: Getter function to get a variable of a nl object

Description

Getter function to get a variable of a nl object

Usage

getnl(nl, var)

Arguments

nl

nl object

var

valid nl variable string

Examples

Run this code
# 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)

# get NetLogo version
getnl(nl, "nlversion")

# }

Run the code above in your browser using DataCamp Workspace