NEWS.md
sp
and raster
. There is still the possibility to convert sp
and raster
objects into NetLogoR
objects and vice versa but except for these functions, all the others do not rely anymore on sp
and raster
objects and functions.terra
terra
NetLogoR
will still work with R 3.6, but we no longer support it.car
, Hmisc
, plyr
?sample
) when the length of the argument x
is 1. This occurred under some (but now all) conditions where there are multiple agents with the same id
, along with some agents with only one member within an id
, and where the objective is to select one of the using oneOf
or nOf(agent, n = 1)
. Now we use resample
as defined in the examples of ?base::sample
.NLwith()
now handles NA
values (#36)turtlesOn()
. Error when the world was not square.inRadius
now multiplies the width
by a tiny amount so that the function returns an inclusive result.quickPlot >= 0.1.1.9000
dependency.SpaDES
-related packages to only include the ones actually used.worldArray
to extract subset layers.show
methods for worldMatrix
and worldArray
, similar to RasterLayer
and RasterStack
.quickPlot::Plot
works, e.g., Plot(agentMatrixObj)
or Plot(worldMatrixObj)
or Plot(worldArrayObj)
, Plot(worldArrayObj$layer1)
. addTo
argument implemented for layering, Plot(worldMatrixObj); Plot(agentMatrixObj, addTo="worldMatrixObj")
will plot the agents on the map.