# spdep

> Spatial weights and spatial autocorrelation statistics in R

Source: https://talira.ai/catalog/spdep-5b4pj59x
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / statistics](https://talira.ai/categories/libraries/math/statistics), [languages / r](https://talira.ai/categories/languages/r)
- Licence: GPL-2.0-or-later[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [r-spatial](https://talira.ai/orgs/r-spatial.md)

spdep is an [R](https://talira.ai/catalog/r-jj1se4aq.md) package for spatial dependence: it builds spatial weights matrices from polygon contiguities and from point patterns by distance or tessellation, summarises them, and uses them in spatial analysis, including regional aggregation by minimum spanning tree. It provides tests for spatial autocorrelation: global Moran's I and Geary's C, Getis-Ord G, join count statistics, APLE, and local indicators such as local Moran's I, Geary's C and Getis-Ord G. It's maintained by Roger Bivand under the r-spatial organisation.

## Links

- Website: https://r-spatial.github.io/spdep/
- GitHub: https://github.com/r-spatial/spdep
- Docs: https://r-spatial.github.io/spdep/

## Problems it solves

- test for spatial autocorrelation in R
- compute Moran's I for regions on a map
- build a neighbours matrix from polygons in R

## Features

- spatial weights from contiguity, distance and tessellations
- global Moran's I, Geary's C and Getis-Ord G
- local indicators of spatial association
- join count statistics and APLE
- regionalisation by minimum spanning tree

## Trust

Overall: 0.44 out of 1.
Signals: maintenance 0.72, adoption 0.44, momentum 0.11, community 0.45, backing 0.30, extensibility 0.00.

- last commit 7 days ago
- 18 commits in the last 90 days
- 154 GitHub stars
- 12 contributors
- backed by r-spatial

## Sources

[^1]: https://github.com/r-spatial/spdep/blob/main/DESCRIPTION (checked 29 Nov 2026)
