powered by
Report TRUE if a patch exists inside the world's extent, report FALSE otherwise.
TRUE
world
FALSE
pExist(world, pxcor, pycor)# S4 method for worldNLR,numeric,numeric pExist(world, pxcor, pycor)
# S4 method for worldNLR,numeric,numeric pExist(world, pxcor, pycor)
Logical.
WorldMatrix or worldArray object.
WorldMatrix
worldArray
Integer. Vector of patches pxcor coordinates. Must be of length 1 or of the same length as pycor.
pxcor
pycor
Integer. Vector of patches pycor coordinates. Must be of length 1 or of the same length as pxcor.
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#member
w1 <- createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9) pExist(world = w1, pxcor = -1, pycor = 2)
Run the code above in your browser using DataLab