Learn R Programming

RNetLogo (version 1.0-4)

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

347

Version

1.0-4

License

GPL-2

Maintainer

Jan C Thiele

Last Published

June 10th, 2017

Functions in RNetLogo (1.0-4)

NLDoCommand

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

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

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

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

Executes a command in the referenced NetLogo instance.
NLDfToList

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

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

Loads a model into the NetLogo instance.
NLSetPatches

Sets a variable of all patches in the NetLogo world to the values in a matrix.
NLSourceFromString

Creates or appends NetLogo code from R.
NLStart

Creates an instance of NetLogo
RNetLogo-package

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

Quits a NetLogo instance.
NLReport

Reports a value or list of values
NLGetAgentSet

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

Captures a network.
NLSetAgentSet

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

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