This is a fast alternative to the SpatialPointsDataFrame. It is meant to replace that functionality, though there are not as many methods (yet). The object is primarily a numeric matrix. Any character column passed to ... will be converted to a numeric, using as.factor internally, and stored as a numeric. Methods using this class will automatically convert character queries to the correct numeric alternative.

agentMatrix(..., coords)

# S4 method for matrix
agentMatrix(..., coords)

# S4 method for missing
agentMatrix(..., coords)

## Arguments

... Vectors, a data.frame, or a matrix of extra columns to add to the coordinates, or a SpatialPointsDataFrame. A matrix with 2 columns representing x and y coordinates

newAgent <- agentMatrix(
t1 <- createTurtles(n = 10, coords = randomXYcor(w1, n = 10))