NetLogoR: 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. 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; Wolf-Sheep-Predation, <>) were translated in R language using 'NetLogoR'. NOTE: To increment 'time', these functions can use a for loop or can be integrated with a discrete event simulator, such as 'SpaDES' (<>). The suggested package 'fastshp' can be installed with 'install.packages("fastshp", repos = "", type = "source")'.

Version: 0.3.2
Depends: R (≥ 3.3.0), raster
Imports: abind, car, CircStats, data.table, grDevices, Hmisc, matrixStats, methods, plyr, quickPlot (≥ 0.1.2), sp,, stats, rgeos
Suggests: fastshp, knitr, magrittr, microbenchmark, rmarkdown, SpaDES.core, testthat
Published: 2018-02-12
Author: Sarah Bauduin [aut, cre], Eliot J B McIntire [aut], Alex M Chubaty [aut], Her Majesty the Queen in Right of Canada, as represented by the Minister of Natural Resources Canada [cph]
Maintainer: Sarah Bauduin <sarahbauduin at>
License: GPL-3
NeedsCompilation: no
Materials: README NEWS
CRAN checks: NetLogoR results


Reference manual: NetLogoR.pdf
Vignettes: Programming Guide 'NetLogoR'
Programming Guide 'NetLogoR'
Package source: NetLogoR_0.3.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X El Capitan binaries: r-release: NetLogoR_0.3.2.tgz
OS X Mavericks binaries: r-oldrel: not available
Old sources: NetLogoR archive


Please use the canonical form to link to this page.