NetLogoR

Build and Run Spatially Explicit Agent-Based Models

CRAN Package

Build and run spatially explicit agent-based models using only the R platform. 'NetLogoR' follows the same framework as the 'NetLogo' software (Wilensky (1999) http://ccl.northwestern.edu/netlogo/) and is a translation in R of the structure and functions of 'NetLogo'. 'NetLogoR' provides new R classes to define model agents and functions to implement spatially explicit agent-based models in the R environment. This package allows benefiting of the fast and easy coding phase from the highly developed 'NetLogo' framework, coupled with the versatility, power and massive resources of the R software. Examples of two models from the NetLogo software repository (Ants http://ccl.northwestern.edu/netlogo/models/Ants) and Wolf-Sheep-Predation (http://ccl.northwestern.edu/netlogo/models/WolfSheepPredation), and a third, Butterfly, from Railsback and Grimm (2012) https://www.railsback-grimm-abm-book.com/, all written using 'NetLogoR' are available. The 'NetLogo' code of the original version of these models is provided alongside. A programming guide inspired 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 also available. 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")'.


Documentation


Team


Insights

Last 30 days

This package has been downloaded 411 times in the last 30 days. More than a random curiosity, but not quite a blockbuster. Still, it's gaining traction! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 13 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsFeb 9, 2025
0 downloadsFeb 10, 2025
0 downloadsFeb 11, 2025
0 downloadsFeb 12, 2025
10 downloadsFeb 13, 2025
17 downloadsFeb 14, 2025
19 downloadsFeb 15, 2025
15 downloadsFeb 16, 2025
18 downloadsFeb 17, 2025
7 downloadsFeb 18, 2025
22 downloadsFeb 19, 2025
33 downloadsFeb 20, 2025
10 downloadsFeb 21, 2025
15 downloadsFeb 22, 2025
24 downloadsFeb 23, 2025
12 downloadsFeb 24, 2025
26 downloadsFeb 25, 2025
25 downloadsFeb 26, 2025
11 downloadsFeb 27, 2025
6 downloadsFeb 28, 2025
8 downloadsMar 1, 2025
4 downloadsMar 2, 2025
9 downloadsMar 3, 2025
11 downloadsMar 4, 2025
31 downloadsMar 5, 2025
6 downloadsMar 6, 2025
6 downloadsMar 7, 2025
5 downloadsMar 8, 2025
2 downloadsMar 9, 2025
9 downloadsMar 10, 2025
11 downloadsMar 11, 2025
18 downloadsMar 12, 2025
8 downloadsMar 13, 2025
13 downloadsMar 14, 2025
0 downloadsMar 15, 2025
2
33

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 4,798 times in the last 365 days. Now we’re talking! This work is officially 'heard of in academic circles', just like those wild research papers on synthetic bananas. The day with the most downloads was May 02, 2024 with 175 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Imports3 packages
  • Suggests12 packages