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

View source: R/class_setget.R

getnlR Documentation

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


# 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)

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


nlrx documentation built on Nov. 25, 2026, 5:09 p.m.