| patches | R Documentation |
patches in a worldReport the coordinates of all the patches in the world.
patches(world)
## S4 method for signature 'worldNLR'
patches(world)
world |
|
Matrix (ncol = 2) with the first column pxcor and the second column
pycor representing the patches coordinates. The order of the patches
follows the order of the cells numbers as defined for a Raster* object.
Sarah Bauduin
Wilensky, U. 1999. NetLogo. https://www.netlogo.org. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.
https://docs.netlogo.org/dictionary.html#patches
w1 <- createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9)
allPatches <- patches(world = w1)
NLcount(allPatches) # 100 patches
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.