This package is an extension of sf
and lwgeom
for spatial analysis in R. The aim is to simplify common tasks carried out on spatial data such as computing contiguities, determine leaf nodes and conditional merging of polygons.
This package depends on the spatial packages sf
and lwgeom
. Additionally, future.apply
is optional for processing certain functions in parallel. It is recommended to install these packages first.
Execute the following to install the latest available version of polygone
:
library(devtools)
install_github("thesixmax/polygone")
The following is the up to date list of functions available in the package. Please refer to the individual man pages for more information. Extended documentation with examples is work in progress.
-
polyg_contiguity
Compute a sparse index list of contiguities for an sf POLYGON object. -
polyg_leaf_nodes
: Compute leaf nodes of an sf LINESTRING object. -
polyg_nearest_node
: Compute the minimum distance linestring from an sf POINT object to the nodes of an sf LINESTRING object. -
polyg_dissolve_enclosed
: Dissolve fully or partially enclosed polygons in a sf POLYGON object. -
polyg_merge_conditional
: Iterative merging of polygons in a sf POLYGON object according to a condition set by the user.
urbanLAB (Department of the Built Environment, Aalborg University)
This package is part of a research project which gratefully acknowledges financial support from: