nbdists(); added prototype adaptation to s2 for unprojected coordinates, used if
TRUE which became the default for sf 1.0.0 https://github.com/r-spatial/s2/issues/125. These are activated by default.
dnearneigh() can choose the prototype s2 approach if
use_s2=TRUE for unprojected coordinates; from https://github.com/r-spatial/s2/issues/125 it seems that distance thresholds at present use brute-force rather than spatial indexing. Use is not activated by default.
poly2nb() now uses
sf::st_intersects() to find candidate neighbours unless
findInBounds= is not NULL. With spatial indexing, this is very fast and scales well for large data sets. If
sf::st_intersects() passes the geometries to
s2::s2_intersects_matrix(), which also uses spatial indexing and is very fast, scaling well for large data sets.
localmoran_perm() return cluster quadrants in an attribute for three splits, zeros, means and medians on the variable of interest and its spatial lag.
localmoran_perm() returns the skewness and kurtosis of the permutation samples.
cell2nb(), with passing of
"SpatialGrid"objects as unnamed first or
"RasterLayer"or similar raster, terra or stars objects to sp class objects first if need be.
In working with renewing the arguments to
cell2nb(), it was useful to add tinytest support, which is now present for this function and may be extended to other functions for creating
Error in assignment to matrix detected by CRAN check in SIDS vignette, section on median polish
Changes to continuous integration and vignettes.
poly2nb(, queen=FALSE) in sf grids (double counting of closed polygon start/end points), https://github.com/r-spatial/spdep/issues/50, thanks to Christopher Kenny.
Adding local Moran and local G conditional permutation:
nb2listwdist() contributed by René Westerholt.
Adding use of sf through GEOS to find polygon contiguity candidates in
poly2nb() if geometry count >= 500 - uses intersections in polygon envelopes.
use_kd_tree=argument for fast planar neighbour set finding in 2D and 3D. Affects
soi.graph()too, which had used RANN.
Disambiguating spdep and spatialreg model output object class names prior to making spdep model fitting functions defunct.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.