inspect: Inspect 'turtles'

Description Usage Arguments Value Author(s) References See Also Examples

Description

Display all variables values for the selected individuals among the turtles.

Usage

1
2
3
4
inspect(turtles, who)

## S4 method for signature 'agentMatrix,numeric'
inspect(turtles, who)

Arguments

turtles

AgentMatrix object representing the moving agents.

who

Integer. Vector of the who numbers for the selected turtles.

Value

Dataframe (nrow = length(who)) of the variables of the selected individuals among the turtles.

Author(s)

Sarah Bauduin

References

Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.

See Also

https://ccl.northwestern.edu/netlogo/docs/dictionary.html#inspect

Examples

1
2
3
w1 <- createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9)
t1 <- createOTurtles(world = w1, n = 10)
inspect(turtles = t1, who = c(2, 3))

NetLogoR documentation built on July 10, 2021, 5:06 p.m.