spatialrisk0.7.3 package

Calculating Spatial Risk

concentration

Concentration calculation

convert_crs_df

Convert Coordinate Reference System (CRS)

convert_df_to_sf

Convert data.frame to simple features (sf) object

find_highest_concentration

Find highest concentration

neighborhood_gh_search

Search for coordinates with higher concentrations within geohash

plot_points

Create interactive point map

plot.conc

Automatically create a plot for objects obtained from highest_concentr...

plot.concentration

Automatically create a plot for objects obtained from `find_highest_co...

cells_above_threshold

Identify the focal cells exceeding the threshold

choropleth_ggplot2

Choropleth map of an sf object with ggplot2

choropleth

Create choropleth map

conc_per_cell_new

Determine the concentrations within the highest focal cells for the cu...

haversine

Haversine great circle distance

highest_conc

Find the highest concentration for the current iteration

highest_concentration

Highest concentration risk

interpolate_spline

Splines on the sphere

knmi_historic_data

Retrieve historic weather data for the Netherlands

map_points_to_cells

Map point coordinates to cell indices

mw_create

Create focal ("moving window") weight matrix

plot

Automatically create a plot for objects obtained from neighborhood_gh_...

points_in_circle_vec

Filter observations within circle (vectorized)

points_in_circle

Find points within a circle around a center coordinate

points_to_polygon

Map points to polygons

top_n_focals

Identify the focal indices with the highest values

update_db

Save highest concentrations per cell for subsequent iterations

update_focal

Update current focal for the next iteration

update_rasterize

Update current rasterize for the next iteration

Provides methods for spatial risk calculations, focusing on efficient determination of the sum of observations within a circle of a given radius. These methods are particularly relevant for applications such as insurance, where recent European Commission regulations require the calculation of the maximum insured value of fire risk policies for all buildings that are partly or fully located within a 200 m radius. The underlying problem is described by Church (1974) <doi:10.1007/BF01942293>.

  • Maintainer: Martin Haringa
  • License: GPL (>= 2)
  • Last published: 2025-09-14