TRUE if a turtle can move the given distance without leaving
world's extent, report
canMove(world, turtles, dist) # S4 method for worldNLR,agentMatrix,numeric canMove(world, turtles, dist)
WorldMatrix or worldArray object.
AgentMatrix object representing the moving agents.
Numeric. Vector of distances to move. Must
be of length 1 or of length
Logical. Vector of length
Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.
w1 <- createWorld(minPxcor = 0, maxPxcor = 4, minPycor = 0, maxPycor = 4) t1 <- createTurtles(n = 10, world = w1) canMove(world = w1, turtles = t1, dist = 1:10)#>  TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE