powered by
turtles
Display all variables values for the selected individuals among the turtles.
inspect(turtles, who)# S4 method for agentMatrix,numeric inspect(turtles, who)
# S4 method for agentMatrix,numeric inspect(turtles, who)
Dataframe (nrow = length(who)) of the variables of the selected individuals among the turtles.
Dataframe
nrow
length(who)
AgentMatrix object representing the moving agents.
AgentMatrix
agents
Integer. Vector of the who numbers for the selected turtles.
who
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#inspect
w1 <- createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9) t1 <- createOTurtles(world = w1, n = 10) inspect(turtles = t1, who = c(2, 3))
Run the code above in your browser using DataLab