Learn R Programming

⚠️There's a newer version (1.0-4) of this package.Take me there.

RNetLogo (version 1.0-3)

Provides an Interface to the Agent-Based Modelling Platform NetLogo

Description

Interface to use and access Wilensky's NetLogo (Wilensky 1999) from R using either headless (no GUI) or interactive GUI mode. Provides functions to load models, execute commands, and get values from reporters. Mostly analogous to the NetLogo Mathematica Link .

Copy Link

Version

Install

install.packages('RNetLogo')

Monthly Downloads

380

Version

1.0-3

License

GPL-2

Maintainer

Jan C Thiele

Last Published

January 21st, 2017

Functions in RNetLogo (1.0-3)

NLLoadModel

Loads a model into the NetLogo instance.
NLDoReportWhile

Repeats execution of a command and a reporter in the referenced NetLogo instance while a conditional reporter returns TRUE.
NLGetGraph

Captures a network.
NLDoCommandWhile

Repeats a command in the referenced NetLogo instance while a reporter returns TRUE.
NLCommand

Executes a command in the referenced NetLogo instance.
NLDoCommand

Repeats execution of a command in the referenced NetLogo instance a defined number of times.
NLDfToList

Transforms a data.frame into a NetLogo list or multiple NetLogo lists (one for each column of the data.frame).
NLGetAgentSet

Reports variable value(s) of one or more agent(s) as a data.frame (optional as a list or vector)
NLGetPatches

Reports the values of patch variables as a data.frame (optional as a list, matrix or simple vector)
NLDoReport

Repeats a command and a reporter in the referenced NetLogo instance a defined number of times.
NLSetAgentSet

Sets a variable of one or more agent(s) to value(s) in a data.frame or vector.
NLSourceFromString

Creates or appends NetLogo code from R.
NLReport

Reports a value or list of values
NLSetPatchSet

Sets the variable value of one or more patch(es) to value(s) in a data.frame.
NLQuit

Quits a NetLogo instance.
NLSetPatches

Sets a variable of all patches in the NetLogo world to the values in a matrix.
RNetLogo-package

Provides an interface to the agent-based modelling platform NetLogo
NLStart

Creates an instance of NetLogo