Learn R Programming

⚠️There's a newer version (0.7.1) of this package.Take me there.

spatialrisk (version 0.7.0)

Calculating Spatial Risk

Description

Methods for spatial risk calculations. It offers an efficient approach to determine the sum of all observations within a circle of a certain radius. This might be beneficial for insurers who are required (by a recent European Commission regulation) to determine the maximum value of insured fire risk policies of all buildings that are partly or fully located within a circle of a radius of 200m. See Church (1974) for a description of the problem.

Copy Link

Version

Install

install.packages('spatialrisk')

Monthly Downloads

388

Version

0.7.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin Haringa

Last Published

November 10th, 2021

Functions in spatialrisk (0.7.0)

highest_concentration

Highest concentration risk
choropleth_sf

Aggregate attributes of coordinates to area level (deprecated function; use 'points_to_polygon' instead)
concentration

Concentration risk
choropleth_tmap

Map object of class sf using tmap (deprecated function; use 'choropleth' instead)
choropleth

Create choropleth map
choropleth_ggplot2

Map object of class sf using ggplot2
haversine

Haversine great circle distance
add_gh_nghbrs_sum

Determine total insured sum of all neighbours (including hash itself) df should contain a column called hash and a column with sum per hash
Groningen

Coordinates of houses in Groningen
add_gh_bbox_sum

Determine total sum for each geohash with buffer of 200m
insurance

Sum insured per postal code in the Netherlands
reexports

Objects exported from other packages
nl_gemeente

Object of class sf for municipalities in the Netherlands
nl_postcode2

Object of class sf for 2-digit postcode regions in the Netherlands
plot.neighborhood

Automatically create a plot for objects obtained from neighborhood_gh_search()
interpolate_krige

Ordinary kriging
neighborhood_gh_search

Search for coordinates with higher concentrations within geohash
nl_postcode4

Object of class sf for 4-digit postcode regions in the Netherlands
nl_postcode3

Object of class sf for 3-digit postcode regions in the Netherlands
nl_corop

Object of class sf for COROP regions in the Netherlands
nl_provincie

Object of class sf for provinces in the Netherlands
points_in_circle

Points in circle
interpolate_spline

Splines on the sphere
points_to_polygon

Aggregate attributes of coordinates to area level
lower_bound_fn

Determine a lower bound for highest concentration Calculate concentration for the coordinates of the highest insured sums
knmi_historic_data

Retrieve historic weather data for the Netherlands
knmi_stations

KNMI stations
plot_points

Create map with points
plot.concentration

Automatically create a plot for objects obtained from highest_concentration()