A Port of NetLogo Functions and Language to R

Easily create agent-based models in R following the NetLogo framework (Wilensky, 1999). NetLogoR provides classes to represent “patches” (raster cells) and “turtles” (moving individuals), functions reproducing the necessary NetLogo primitives as well as new complementary functions to easily build agent-based models or translate NetLogo models in R.

Getting Started

A programming guide inspired from the NetLogo Programming Guide and a dictionary of NetLogo primitives equivalences are available. As examples, three NetLogo models (Ants, Butterfly (Railsback and Grimm, 2012) and Wolf-Sheep-Predation) were translated to R using NetLogoR.

Installing NetLogoR

From GitHub