Display all variables values for the selected individuals among the turtles.
inspect(turtles, who)
# S4 method for agentMatrix,numeric
inspect(turtles, who)AgentMatrix object representing the moving agents.
Integer. Vector of the who numbers for the selected turtles.
Dataframe (nrow = length(who)) of the variables of the selected
individuals among the turtles.
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 = 9, minPycor = 0, maxPycor = 9)
t1 <- createOTurtles(world = w1, n = 10)
inspect(turtles = t1, who = c(2, 3))
#> xcor ycor who heading prevX prevY breed color
#> 1 4.5 4.5 2 72 NA NA turtle #CCFF00
#> 2 4.5 4.5 3 108 NA NA turtle #33FF00