turtles from parent
hatch(turtles, who, n, breed) # S4 method for agentMatrix,numeric,numeric hatch(turtles, who, n, breed)
AgentMatrix object representing the moving
Integer. Vector of the
who numbers for the selected
Integer. Vector of length 1 or of length
who. Number of new
to create for each parent.
breed name. If missing,
turtles are of the same
breed as their parent
AgentMatrix representing the
turtles with the new
turtle must be contained in the
`turtles` inherit of all the data from the parent `turtle`, The created for the `breed` if specified otherwise, and for the `who` numbers. except `who`" numbers of the `turtles` created take on following the highest The `who` number among the `turtles`. All new hatched `turtles` are placed at the end of the `agentMatrix` object.
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 = 4, minPycor = 0, maxPycor = 4) t1 <- createTurtles(n = 10, world = w1) NLcount(t1) #>  10 t1 <- hatch(turtles = t1, who = 0, n = 2) NLcount(t1) #>  12