patches: All the 'patches' in a 'world'

Description Usage Arguments Value Author(s) References See Also Examples

Description

Report the coordinates of all the patches in the world.

Usage

1
2
3
4
patches(world)

## S4 method for signature 'worldNLR'
patches(world)

Arguments

world

WorldMatrix or worldArray object.

Value

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.

Author(s)

Sarah Bauduin

References

Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.

See Also

https://ccl.northwestern.edu/netlogo/docs/dictionary.html#patches

Examples

1
2
3
w1 <- createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9)
allPatches <- patches(world = w1)
NLcount(allPatches) # 100 patches

NetLogoR documentation built on Oct. 19, 2021, 5:06 p.m.