Skip to contents

Version 1.3-6 (development)

CRAN release: 2024-09-13

  • adding vignette desribing recent changes in poly2nb from #162, subgraph and no-neighbour (island) handling

  • adding prototype of LICD ESDA function licd_multi and hotspot method

  • add read.swmdbf2listw #163 for reading DBF files exported from ArcGIS representing SWM objects; note that there will be problems when the observation IDs are not known, see help file

  • #162 add option for no-neighbour checking for poly2nb - default report whether no-neighbour observations are present

  • #162 change the default snap= argument to poly2nb to 10mm

  • Condition on forthcoming tmap 4

  • #160 handle n.comp.nb delay in print.nb and elsewhere when the total number of neighbours is large

Version 1.3-5 (2024-06-10)

CRAN release: 2024-06-10

  • #157 migrate ESRI Shapefile to GPKG files; convert bhicv.shp to GPKG

  • #155 Throw error if hotspot despatched on object without a "quadr" attribute

  • #154 turn on s2 in vignette

Version 1.3-4 (2024-05-31)

CRAN release: 2024-05-31

  • add scale argument to geary.test, geary.mc and geary #151, and appropriate tests

  • Introduce error in knearneigh for k less than the largest count of identical points; if encountered, increase k

  • remove spurious warning in knearneigh for longlat geometries

  • fix https://github.com/edzer/sdsr/issues/121, wrong assignment of old test names in lmRStests

  • fix #144 in plot.nb and nb2lines

Version 1.3-3 (2024-02-07)

CRAN release: 2024-02-07

  • change lm.LMtests to lm.RStests and re-name Lagrange multiplier to Rao’s score; add GNM_ prefix to test names if the input object inherits from SlX created by spatialreg::lmSLX (Koley, forthcoming)

  • add SD.RStests implementation of Rao’s score tests for spatial Durbin models (Koley and Bera, 2024) and for SDEM models (Koley, forthcoming)

  • #143 row.names pass-through in poly2nb corrected, harmonised row.names pass-through also in nbdists and dnearneigh

  • #139 add na.action argument to geary.test, geary.mc and globalG.test

  • add style to sn2listw use in tri2nb

Version 1.3-1 (2023-11-23)

CRAN release: 2023-11-23

  • functions creating nb objects now warn if the object has a sub-graph count of > 1 and get.SubgraphOption is TRUE (default FALSE): complement.nb, diffnb, dnearneigh, droplinks, edit.nb, graph2nb, knn2nb, nb2blocknb, nblag, nblag_cumul, poly2nb, read.gal, read.gwt2nb, setdiff.nb, tolerance.nb, tri2nb, union.nb

  • summary.nb, print.nb, summary.listw and print.listw now report the subgraph count from n.comp.nb if it is more than one

  • subset.nb now reports if the subgraph count of the neighbour object increases on subsetting

  • adding a zero.policy attribute to functions creating listw objects: nb2listw, sn2listw, mat2listw, nb2listwdist. Default zero.policy= argument updated to use attr(., "zero.policy") in summary.listw, print.listw, moran, moran.test, moran.mc, moran.plot, geary.mc, geary, geary.test, globalG.test, joincount.test, joincount.mc, joincount.multi, localC, localC_perm, localmoran, localmoran_perm, localG, localG_perm, lee, lee.test, lee.mc, lm.morantest, lm.LMtests, sp.mantel.mc, listw2star, lag.listw, lm.morantest, lm.LMtests, subset.listw, EBImoran.mc, LOSH, LOSH.mc, LOSH.cs, lm.morantest.exactand lm.morantest.sad

  • confusing error message in moran.plot() if no-neighbour cases, but zero.policy=FALSE

  • replace rgrass7 with rgrass in vignette

  • fix #133 (edit.nb affected by not attaching sp)

Version 1.2-8 (2023-02-28)

CRAN release: 2023-02-28

Version 1.2-7 (2022-10-01)

CRAN release: 2022-10-01

  • #103 refactoring local joincount test by Josiah Parry

  • add hotspot methods for localmoran (analytical, permutation, Saddlepoint and exact), localC (univariate and multivariate) and localG (analytical and permutation)

  • #95 add "two.sided" to lee.mc(), same for sp.mantel.mc(), EBImoran.mc(), joincount.mc(), geary.mc()

  • #92, #93, #94, #96, #97 contributions of prototype bivariate Moran, local bivariate Moran and local joincount and bivariate joincount tests by Josiah Parry

  • #91 tolerance.nb() update by F. Guillaume Blanchet

  • updating coercion for Matrix 1.4-2

  • fix ncpus issue in dontrun examples

  • remove suggested packages rgdal, rgeos, maptools

Version 1.2-5 (2022-08-11)

CRAN release: 2022-08-11

Version 1.2-4 (2022-04-18)

CRAN release: 2022-04-18

  • added remove.self(), thanks to Josiah Parry #83.

  • unescape underscores in help pages.

Version 1.2-3 (2022-03-29)

CRAN release: 2022-03-29

  • replace deprecated S-compatibility macros DOUBLE_

  • #81 improved dnearneigh() help page.

  • #79 remove "htest" class from LOSH.mc() output object.

  • Added GA SI article to citations.

Version 1.2-2 (2022-01-28)

CRAN release: 2022-01-28

Version 1.2-1 (2022-01-05)

CRAN release: 2022-01-04

  • Switching deprecated functions moved to spatialreg to defunct.

Version 1.1-13 (2021-12-14)

CRAN release: 2021-12-14

  • Recent changes in poly2nb() had reduced and most recently (1.1-8) removed the use of snap= in finding candidate neighbours; many thanks to Matilda Brown for a clear and well-documented issue #65

  • Add local Geary’s C #66 thanks to Josiah Parry, discussion on further work on #68

  • localmoran_perm() returns both look-up and folded rank p-values

Version 1.1-12 (2021-11-09)

CRAN release: 2021-11-09

  • In poly2nb(), reverted removal of legacy interpreted overlapping envelope code for sp objects that cannot be coerced to sf without rgeos.

  • Add Fortran character handling USE_FC_LEN_T WRE §6.6.1.

  • Checks OK with forthcoming deldir 1.0-0.

  • Fixes #62 clarifying dnearneigh() help page

Version 1.1-11 (2021-09-07)

CRAN release: 2021-09-07

Version 1.1-8 (2021-05-23)

CRAN release: 2021-05-23

  • #55 related to #20 and cycling order in setting up grids provoked re-design of interface to cell2nb(), with passing of "GridTopology" or "SpatialGrid" objects as unnamed first or x= argument. Coerce "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 "nb" objects.

  • #58 contributed by Jeff Sauer and Levi Wolf (from https://doi.org/10.31219/osf.io/ugkhp) providing conditional standard deviates for local Moran’s I

  • Error in assignment to matrix detected by CRAN check in SIDS vignette, section on median polish

Version 1.1-7 (2021-04-03)

CRAN release: 2021-04-03

  • Changes to continuous integration and vignettes.

  • Error in 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: localmoran_perm() and localG_perm().

  • Adding 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.

  • #38, #53 removing RANN, adding dbscan suggestions for fast dnearneigh() and knearneigh() via use_kd_tree= argument for fast planar neighbour set finding in 2D and 3D. Affects soi.graph() too, which had used RANN.

  • #54 avoid partial matching in glist= handling.

  • Disambiguating spdep and spatialreg model output object class names prior to making spdep model fitting functions defunct.

Version 1.1-5 (2020-06-29)

CRAN release: 2020-06-29

  • Replacing broken geoda URLs, moving knitr to rmarkdown, work-around missing weights files in spData.

Version 1.1-3 (2019-09-18)

CRAN release: 2019-09-18

  • A small maintenance update to accommodate a forthcoming change in spData (a dataset used in an example in spdep from spData is changing its name; the name had involved putting “x”, “y” and “xyz” in the global environment through lazy loading a dataset).

Version 1.1-2 (2019-04-05)

CRAN release: 2019-04-05

  • Follow-up version of spdep with all the functions and methods transferred to the spatialreg package marked as deprecated, but still exported from spdep. Reverse dependencies passing with the released version still pass for me with this version.