pExist | R Documentation |
Report TRUE
if a patch exists inside the world
's extent, report
FALSE
otherwise.
pExist(world, pxcor, pycor)
## S4 method for signature 'worldNLR,numeric,numeric'
pExist(world, pxcor, pycor)
world |
|
pxcor |
Integer. Vector of patches |
pycor |
Integer. Vector of patches |
Logical.
Sarah Bauduin
Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.
https://ccl.northwestern.edu/netlogo/docs/dictionary.html#member
w1 <- createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9)
pExist(world = w1, pxcor = -1, pycor = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.