spatialrisk: Spatial Concentration and Radius-Based Risk Calculations

Provides methods for spatial concentration and radius-based risk calculations. The package focuses on efficient determination of the sum of observations within a given radius, identifying local concentration hotspots, and aggregating point data to polygon geometries. These methods are useful for applications such as insurance, urban analytics, environmental exposure analysis, and other spatial point pattern workflows. The underlying maximum covering problem is described by Church (1974) <doi:10.1007/BF01942293>.

Version: 0.8.0
Depends: R (≥ 4.1.0)
Imports: data.table, dplyr, fs, lifecycle, Rcpp, RcppProgress, rlang, sf, terra, units
LinkingTo: Rcpp, RcppProgress
Suggests: classInt, colourvalues, GenSA, geohashTools, ggplot2, knitr, leafem, leafgl, leaflet, mapview, mgcv, rmarkdown, testthat, tmap, vroom
Published: 2026-05-04
DOI: 10.32614/CRAN.package.spatialrisk
Author: Martin Haringa [aut, cre]
Maintainer: Martin Haringa <mtharinga at gmail.com>
BugReports: https://github.com/mharinga/spatialrisk/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/mharinga/spatialrisk, https://mharinga.github.io/spatialrisk/
NeedsCompilation: yes
Materials: NEWS
CRAN checks: spatialrisk results

Documentation:

Reference manual: spatialrisk.html , spatialrisk.pdf
Vignettes: Fixed-radius concentration analysis (source, R code)
Choropleth visualisation (source, R code)

Downloads:

Package source: spatialrisk_0.8.0.tar.gz
Windows binaries: r-devel: spatialrisk_0.8.0.zip, r-release: spatialrisk_0.8.0.zip, r-oldrel: spatialrisk_0.8.0.zip
macOS binaries: r-release (arm64): spatialrisk_0.8.0.tgz, r-oldrel (arm64): spatialrisk_0.8.0.tgz, r-release (x86_64): spatialrisk_0.8.0.tgz, r-oldrel (x86_64): spatialrisk_0.8.0.tgz
Old sources: spatialrisk archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=spatialrisk to link to this page.