R package gdistance: Distances and routes on geographical grids
Authors
Date Issued
Date Online
Language
Type
Review Status
Access Rights
Metadata
Full item pageCitation
van Etten, J. (2017) R package gdistance: Distances and routes on geographical grids. Journal of Statistical Software 76(13) v076i13 ISSN: 1548-7660
Permanent link to cite or share this item
External link to download this item
Abstract/Description
The R package gdistance provides classes and functions to calculate various distance measures and routes in heterogeneous geographic spaces represented as grids. Least-cost distances as well as more complex distances based on (constrained) random walks can be calculated. Also the corresponding routes or probabilities of passing each cell can be determined. The package implements classes to store the data about the probability or cost of transitioning from one cell to another on a grid in a memory-efficient sparse format. These classes make it possible to manipulate the values of cell-to-cell movement directly, which offers flexibility and the possibility to use asymmetric values. The novel distances implemented in the package are used in geographical genetics (applying circuit theory), but also have applications in other fields of geospatial analysis.