Report TRUE
if a turtle
exists inside the turtles
, report
FALSE
otherwise.
tExist(turtles, who, breed) # S4 method for agentMatrix,numeric,missing tExist(turtles, who) # S4 method for agentMatrix,numeric,character tExist(turtles, who, breed)
turtles 


who  Integer. Vector of the 
breed  Characters. Vector of 
Logical. Vector of TRUE
or FALSE
if the who
numbers
with any of the breed
, if provided, exist or not
inside the turtles
.
Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and ComputerBased Modeling, Northwestern University. Evanston, IL.
w1 < createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9) t1 < createTurtles(n = 10, coords = randomXYcor(w1, n = 10), breed = c(rep("sheep", 5), rep("wolf", 5))) tExist(turtles = t1, who = 3, breed = "sheep")#> [1] TRUEtExist(turtles = t1, who = 9, breed = "sheep")#> [1] FALSE#> [1] TRUE#> [1] TRUE TRUE