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” (individuals), the necessary NetLogo primitives, and complementary functions to easily build agent-based models or translate NetLogo models in R.

Getting Started

A programming guide derived 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

#install.packages("devtools")
devtools::install_github("PredictiveEcology/NetLogoR")