Changelog
Source:NEWS.md
Version 1-3-13 (2025-06-10)
Adds Bavaud’s multivariate
spatialdeltawith support functions and methodsAdd note on changes to output from tests for error autocorrelation if contrast codings are set to non-default values
Version 1.3-11 (2025-04-24)
CRAN release: 2025-04-24
introduce warnings for factors (categorical variables) in Durbin models (
SD.RStests)remove |> in vignette to avoid R >= 4.1 dependency https://stat.ethz.ch/pipermail/r-devel/2025-January/083768.html
update reference to Koley (2024) in man/SD.RStests.Rd
add warnings to Durbin terms including categorical variables in
SD.RStests
Version 1.3-10 (2025-01-20)
CRAN release: 2025-01-20
R_NO_REMAPproblem with R < 4.4.1 fixed by replacingCOPY_TO_USER_STRINGbyRf_mkChar, because include/Rdefines.h before revision 86416 setCOPY_TO_USER_STRINGasmkCharwhich is not defined asRf_mkCharwhenR_NO_REMAPis defined, #176, thanks to Edzer Pebesmadisambiguate which
skaterin examples to satisfypkgdown, which usedrgeoda::skater; other patches to examples to satisfypkgdownuse
inheritsinskater
Version 1.3-9 (2025-01-16)
CRAN release: 2025-01-16
revisit
diffnband set operations likeunion.nbandsetdiff.nbfollowing up #175;diffnblargely rewritten and should no longer generate deformed output; set operations modified to match base functions actionsconvert
errortoRf_error,lengthtoRf_lengthetc. to accommodateR_NO_REMAP, see https://github.com/r-spatial/spdep/commit/b61f6b17be09383c94b45e912f9213735aa62212 for R 4.5re-instate rgeoda references
Version 1.3-6 (2024-09-13)
CRAN release: 2024-09-13
adding vignette describing recent changes in
poly2nbfrom #162, subgraph and no-neighbour (island) handlingadding prototype of LICD ESDA function
licd_multiandhotspotmethodadd
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 topoly2nbto 10mmCondition on forthcoming
tmap4#160 handle
n.comp.nbdelay inprint.nband elsewhere when the total number of neighbours is large
Version 1.3-4 (2024-05-31)
CRAN release: 2024-05-31
add
scaleargument togeary.test,geary.mcandgeary#151, and appropriate testsIntroduce error in
knearneighforkless than the largest count of identical points; if encountered, increasekremove spurious warning in
knearneighfor longlat geometriesfix https://github.com/edzer/sdsr/issues/121, wrong assignment of old test names in
lmRStestsfix #144 in
plot.nbandnb2lines
Version 1.3-3 (2024-02-07)
CRAN release: 2024-02-07
change
lm.LMteststolm.RStestsand re-name Lagrange multiplier to Rao’s score; addGNM_prefix to test names if the input object inherits fromSlXcreated byspatialreg::lmSLX(Koley, forthcoming)add
SD.RStestsimplementation of Rao’s score tests for spatial Durbin models (Koley and Bera, 2024) and for SDEM models (Koley, forthcoming)#143
row.namespass-through inpoly2nbcorrected, harmonisedrow.namespass-through also innbdistsanddnearneigh#139 add
na.actionargument togeary.test,geary.mcandglobalG.testadd
styletosn2listwuse intri2nb
Version 1.3-1 (2023-11-23)
CRAN release: 2023-11-23
functions creating
nbobjects now warn if the object has a sub-graph count of > 1 andget.SubgraphOptionisTRUE(defaultFALSE):complement.nb,diffnb,dnearneigh,droplinks,edit.nb,graph2nb,knn2nb,nb2blocknb,nblag,nblag_cumul,poly2nb,read.gal,read.gwt2nb,setdiff.nb,tolerance.nb,tri2nb,union.nbsummary.nb,print.nb,summary.listwandprint.listwnow report the subgraph count fromn.comp.nbif it is more than onesubset.nbnow reports if the subgraph count of the neighbour object increases on subsettingadding a
zero.policyattribute to functions creatinglistwobjects:nb2listw,sn2listw,mat2listw,nb2listwdist. Defaultzero.policy=argument updated to useattr(., "zero.policy")insummary.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.exactandlm.morantest.sadconfusing error message in
moran.plot()if no-neighbour cases, butzero.policy=FALSEreplace
rgrass7withrgrassin vignettefix #133 (
edit.nbaffected by not attachingsp)
Version 1.2-8 (2023-02-28)
CRAN release: 2023-02-28
mat2listw()warning if nostyle=argument given, or ifM"is given https://github.com/r-spatial/spatialreg/issues/24, https://github.com/r-spatial/spatialreg/issues/23.remaining users of
run_perm()-localC(),localmoran_bv()andlocal_joincount_uni()getno_repeat_in_row=arguments.Address 2) in #124;
localG_perm()andlocalmoran_perm()getno_repeat_in_row=arguments to use conditional permutation without replacement by sample vectors; the default implementation uses sampling with replacement, which is acceptable across simulation draws, but arguably less acceptable within draws. Feedback would be valued.Address 1) in #124;
localG_perm()andlocalG()now return the same analytical standard deviates. The standard deviates from the simulated distributions are now returned inattr(., "internals")[,"StdDev.Gi"]fromlocalG_perm(), as are p-values, etc.move sp from Depends to Imports, to reduce the visual impression that sp objects are required for spdep; sf objects are now preferred, but sp objects can be used as before, although users may need to attach sp expliciitly.
fix #121 and #123; correcting returned values for
localG_perm()when estimating the G-star measure (fix self x values and weights)address #120, moving documentation of
listw2U()from?lm.morantestto?nb2listwaddressing #119 for interpretation of
moran_bv()resultsadding #116, René Westerholt
fix #113, too low R version for
grDevices::hcl.colors()addressing #111 by Josiah Parry
PRs from René Westerholt, ending with #109, for the local GS measure
Version 1.2-7 (2022-10-01)
CRAN release: 2022-10-01
#103 refactoring local joincount test by Josiah Parry
add
hotspotmethods forlocalmoran(analytical, permutation, Saddlepoint and exact),localC(univariate and multivariate) andlocalG(analytical and permutation)#95 add
"two.sided"tolee.mc(), same forsp.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 Blanchetupdating 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
permit use of data.frame or tibble as matrix for functions creating neighbour objects from 2D points (preferred use an object inheriting from `
"SpatialPoints"or"sfc")fix #87 wrong logic in infinite weights in
nb2listwdist()https://github.com/r-spatial/s2/pull/174 speeds up
dnearneigh()for geographical coordinates without usings2::s2_closest_edges().Adapting vignettes for absence of rgdal and maptools
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.Added GA SI article to citations.
Version 1.2-2 (2022-01-28)
CRAN release: 2022-01-28
Replace
rainbow()byhcl.colors(..., "Set 2")inplot.skater().Add link to R-sig-geo thread on
EBlocal()NaN estimates when many counts are zero on help page.Revise and add documentation for object returned by
localC_perm()#68 #72 #73 #74 #75 #76localmoran.sad(),localmoran.exact()andlocalmoran.exact.alt()will now use multiple compute nodes if needed; ifOmegais used, multiple cores may need more memory #77For s2 > 1.0.7, use indexed distances in
dnearneigh()https://github.com/r-spatial/s2/pull/162.
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 ofsnap=in finding candidate neighbours; many thanks to Matilda Brown for a clear and well-documented issue #65Add 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_TWRE §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
knearneigh()andnbdists(); added prototype adaptation to s2 for unprojected coordinates, used ifsf_use_s2()isTRUEwhich 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 ifsf_use_s2()isTRUEanduse_s2=TRUEfor 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 usessf::st_intersects()to find candidate neighbours unlessfindInBounds=is not NULL. With spatial indexing, this is very fast and scales well for large data sets. Ifsf_use_s2()isTRUE,sf::st_intersects()passes the geometries tos2::s2_intersects_matrix(), which also uses spatial indexing and is very fast, scaling well for large data sets.localmoran()andlocalmoran_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.
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 orx=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()andlocalG_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()andknearneigh()viause_kd_tree=argument for fast planar neighbour set finding in 2D and 3D. Affectssoi.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).