spData
Datasets for Spatial Analysis
Diverse spatial datasets for demonstrating, benchmarking and teaching spatial data analysis. It includes R data of class sf (defined by the package 'sf'), Spatial ('sp'), and nb ('spdep'). Unlike other spatial data packages such as 'rnaturalearth' and 'maps', it also contains data stored in a range of file formats including GeoJSON and GeoPackage, but from version 2.3.4, no longer ESRI Shapefile - use GeoPackage instead. Some of the datasets are designed to illustrate specific analysis techniques. cycle_hire() and cycle_hire_osm(), for example, is designed to illustrate point pattern analysis techniques.
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
2.3.4 |
2026-04-09 windows/windows R-4.5 | spData_2.3.4.zip |
3.7 MiB |
Dependencies (latest)
Imports
Suggests
- foreign
- sf (>= 0.9-1)
- spDataLarge (>= 0.4.0)
- spdep
- spatialreg