Learn R Programming

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

RNetLogo (version 0.9.4)

Provides an interface to the agent-based modelling platform NetLogo

Description

Interface to use and access NetLogo 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 http://ccl.northwestern.edu/netlogo/docs/mathematica.html

Copy Link

Version

Install

install.packages('RNetLogo')

Monthly Downloads

290

Version

0.9.4

License

GPL-2

Maintainer

Jan Thiele

Last Published

January 17th, 2013

Functions in RNetLogo (0.9.4)

NLLoadModel

Loads a model into the NetLogo instance.
NLGetGraph

Captures a network.
NLDoReport

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

Creates or appends NetLogo code from R.
NLSetAgentSet

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

Quits a NetLogo instance.
NLGetPatches

Reports the values of patch variables as a data.frame (optional as a list, matrix or simple vector)
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 list (one for each column of the data.frame).
NLSetPatches

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

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

Creates an instance of NetLogo
NLCommand

Executes a command in the referenced NetLogo instance.
NLGetAgentSet

Reports variable values of one or more agents as a data.frame (optional as a list or vector)
NLSetPatchSet

Sets the variable value of one or more patches to values in a data.frame.
NLReport

Reports a value or list of values
RNetLogo-package

Provides an interface to the agent-based modelling plattform NetLogo
NLDoCommandWhile

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