Arguments

Matrix (ncol = 2) with the first column pxcor and the second
column pycor representing the patches coordinates, or

AgentMatrix object representing the moving agents.

breed

Characters. Vector of breed names for the selected turtles.
If missing, there is no distinction based upon breed.

simplify

Logical. If simplify = TRUE, all turtles on the same
patches as any agents are returned; if simplify = FALSE,
the turtles are evaluated for each agents's patches
individually.

Value

AgentMatrix representing any individuals from turtles of
any of the given breed, if specified,
located on the same patches as any of the agents, if simplify = TRUE, or

Matrix (ncol = 2) with the first column whoTurtles and the second column
id showing which turtles are on the same
patches as which agents represented by id, if simplify = FALSE.
id represents and follows the order of the agents. id does not represent
the who numbers
of the agents if agents are turtles.