Convert a SpatialPointsDataFrame
object into an agentMatrix
object.
spdf2turtles(spdf)
# S4 method for SpatialPointsDataFrame
spdf2turtles(spdf)
SpatialPointsDataFrame
object representing moving agents
.
AgentMatrix
object representing the moving agents
(coordinates and data)
as contained in spdf
.
If the spdf
does not contain the variables created with
createTurtles()
, these variables will be created with the
default values as in createTurtles()
.