NetLogoR

A Port of 'NetLogo' Functions and Language to R

Easily create agent-based models in R following the 'NetLogo' framework (Wilensky, 1999; <http://ccl.northwestern.edu/netlogo/>). 'NetLogoR' provides classes to represent 'patches' (raster cells) and 'turtles' (individuals), the necessary 'NetLogo' primitives (<https://ccl.northwestern.edu/netlogo/docs/dictionary.html>), and complementary functions to easily build agent-based models or translate 'NetLogo' models in R. A programming guide derived from the 'NetLogo' Programming Guide (<https://ccl.northwestern.edu/netlogo/docs/programming.html>) and a dictionary of 'NetLogo' primitives (<https://ccl.northwestern.edu/netlogo/docs/dictionary.html>) equivalences are available. As examples, three 'NetLogo' models (Ants, <http://ccl.northwestern.edu/netlogo/models/Ants>; Butterfly, Railsback and Grimm, 2012; Wolf-Sheep-Predation, <http://ccl.northwestern.edu/netlogo/models/WolfSheepPredation>) 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' (<https://cran.r-project.org/package=SpaDES>). The suggested package 'fastshp' can be installed with 'install.packages("fastshp", repos = "https://rforge.net", type = "source")'.

Total

209

Last month

209

Last week

39

Average per day

7

Daily downloads

Total downloads

Description file content

Package
NetLogoR
Title
A Port of 'NetLogo' Functions and Language to R
Description
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 = "https://rforge.net", type = "source")'.
URL
Version
0.3.2
Date
2018-02-07
Depends
R (>= 3.3.0), raster
Imports
abind, car, CircStats, data.table, grDevices, Hmisc, matrixStats, methods, plyr, quickPlot (>= 0.1.2), sp, SpaDES.tools, stats, rgeos
Suggests
fastshp, knitr, magrittr, microbenchmark, rmarkdown, SpaDES.core, testthat
License
GPL-3
VignetteBuilder
knitr, rmarkdown
BugReports
https://github.com/PredictiveEcology/NetLogoR/issues
ByteCompile
yes
LazyData
true
RoxygenNote
6.0.1
Additional_repositories
https://rforge.net
Collate
'Agent-classes.R' 'Classes.R' 'NetLogoR-package.R' 'worldNLR-classes-methods.R' 'agentMatrix-Class-methods.R' 'agentset-functions.R' 'function-arguments.R' 'patch-functions.R' 'plot.R' 'world-functions.R' 'quickPlot.R' 'spades-functions.R' 'turtle-functions.R'
NeedsCompilation
no
Packaged
2018-02-12 15:06:24 UTC; Bauduin
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
Repository
CRAN
Date/Publication
2018-02-12 15:40:06 UTC

install.packages('NetLogoR')

0.3.2

10 days ago

http://netlogor.predictiveecology.org

Sarah Bauduin

GPL-3

Depends on

R (>= 3.3.0), raster

Imports

abind, car, CircStats, data.table, grDevices, Hmisc, matrixStats, methods, plyr, quickPlot (>= 0.1.2), sp, SpaDES.tools, stats, rgeos

Suggests

fastshp, knitr, magrittr, microbenchmark, rmarkdown, SpaDES.core, testthat

Discussions