Package: gdistance 1.6.4

Andrew Marx

gdistance: Distances and Routes on Geographical Grids

Provides classes and functions to calculate various distance measures and routes in heterogeneous geographic spaces represented as grids. The package implements measures to model dispersal histories first presented by van Etten and Hijmans (2010) <doi:10.1371/journal.pone.0012060>. Least-cost distances as well as more complex distances based on (constrained) random walks can be calculated. The distances implemented in the package are used in geographical genetics, accessibility indicators, and may also have applications in other fields of geospatial analysis.

Authors:Jacob van Etten [aut], Kauê de Sousa [ctb], Andrew Marx [cre, ctb]

gdistance_1.6.4.tar.gz
gdistance_1.6.4.zip(r-4.5)gdistance_1.6.4.zip(r-4.4)gdistance_1.6.4.zip(r-4.3)
gdistance_1.6.4.tgz(r-4.4-any)gdistance_1.6.4.tgz(r-4.3-any)
gdistance_1.6.4.tar.gz(r-4.5-noble)gdistance_1.6.4.tar.gz(r-4.4-noble)
gdistance_1.6.4.tgz(r-4.4-emscripten)gdistance_1.6.4.tgz(r-4.3-emscripten)
gdistance.pdf |gdistance.html
gdistance/json (API)
NEWS

# Install 'gdistance' in R:
install.packages('gdistance', repos = c('https://agrdatasci.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/agrdatasci/gdistance/issues

Datasets:
  • genDist - Genetic distances and coordinates of haplogroup R1b1b2 populations in Europe
  • popCoord - Genetic distances and coordinates of haplogroup R1b1b2 populations in Europe

On CRAN:

9.23 score 15 stars 23 packages 468 scripts 3.5k downloads 30 exports 15 dependencies

Last updated 12 months agofrom:4076198439. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 30 2024
R-4.5-winNOTEOct 30 2024
R-4.5-linuxNOTEOct 30 2024
R-4.4-winOKOct 30 2024
R-4.4-macOKOct 30 2024
R-4.3-winOKOct 30 2024
R-4.3-macOKOct 30 2024

Exports:accCostadjacencyFromTransitionArithcoercecommuteDistanceComparecostDistancegeoCorrectionLogicmatrixValuesmatrixValues<-nlayersnonoverlapnormalizeOpsoverlappassagepathIncrasterrSPDistanceshortestPathshowsummarySummarysumReciprocaltransitiontransitionCellstransitionDatatransitionMatrixtransitionMatrix<-

Dependencies:clicpp11glueigraphlatticelifecyclemagrittrMatrixpkgconfigrasterRcpprlangspterravctrs

gdistance: Distances and Routes on Geographical Grids

Rendered fromOverview.Rmdusingknitr::knitron Oct 30 2024.

Last update: 2023-06-20
Started: 2020-02-28

Readme and manuals

Help Manual

Help pageTopics
Accumulated Cost SurfaceaccCost accCost,TransitionLayer,Coords-method accCost,TransitionLayer,RasterLayer-method
Adjacent cellsadjacencyFromTransition
Arithmetic and mathematical operations with objects of Transition* classesArith,ANY,TransitionLayer-method Arith,ANY,TransitionStack-method Arith,TransitionLayer,ANY-method Arith,TransitionLayer,TransitionLayer-method Arith,TransitionLayer,TransitionStack-method Arith,TransitionStack,ANY-method Arith,TransitionStack,TransitionLayer-method Arith-methods ArithMath-methods Math,TransitionLayer-method Math,TransitionStack-method Math-methods
Commute-time distancecommuteDistance commuteDistance,TransitionLayer,Coords-method
Coords classCoords class Coords-class
Cost distancecostDistance costDistance,TransitionLayer,Coords,Coords-method costDistance,TransitionLayer,Coords,missing-method
Distances and Routes on Geographical Gridsgdistance-package gdistance
Genetic distances and coordinates of haplogroup R1b1b2 populations in EuropegenDist popCoord
Geographic CorrectiongeoCorrection geoCorrection,TransitionLayer,character-method geoCorrection,TransitionLayer,missing-method
Normalizenormalize normalize,TransitionLayer-method
Overlap and nonoverlap of trajectoriesnonoverlap overlap
Probability of passagepassage passage,TransitionLayer,Coords,Coords,missing-method passage,TransitionLayer,Coords,Coords,numeric-method passage,TransitionLayer,RasterLayer,RasterLayer,missing-method passage,TransitionLayer,RasterLayer,RasterLayer,numeric-method
Incidence of paths from a common origin: overlap and non-overlappathInc pathInc,TransitionLayer,Coords,Coords,Coords,missing,missing-method pathInc,TransitionLayer,Coords,Coords,Coords,missing,Transition-method pathInc,TransitionLayer,Coords,Coords,Coords,numeric,missing-method pathInc,TransitionLayer,Coords,Coords,Coords,numeric,Transition-method pathInc,TransitionLayer,Coords,Coords,missing,missing,missing-method pathInc,TransitionLayer,Coords,Coords,missing,missing,Transition-method pathInc,TransitionLayer,Coords,Coords,missing,numeric,missing-method pathInc,TransitionLayer,Coords,Coords,missing,numeric,Transition-method
RasterLayer from TransitionLayer objectraster,TransitionLayer-method
Randomized shortest path distancerSPDistance rSPDistance,TransitionLayer,Coords-method
Shortest pathshortestPath shortestPath,TransitionLayer,Coords,Coords-method
Summary methodsmean,TransitionStack-method sum,TransitionStack-method Summary,TransitionLayer-method summary,TransitionLayer-method Summary,TransitionStack-method summary,TransitionStack-method Summary-methods
Reciprocal of the sum of the reciprocals of conductance values in Transition* objectssumReciprocal
Create an object of the class Transitiontransition transition,RasterBrick-method transition,RasterLayer-method
Transition classes==,TransitionLayer,TransitionLayer-method ==,TransitionStack,TransitionStack-method coerce,RasterLayer,TransitionLayer-method coerce,TransitionData,sparseMatrix-method coerce,TransitionLayer,RasterLayer-method coerce,TransitionLayer,sparseMatrix-method coerce,TransitionLayer,TransitionData-method coerce,TransitionLayer,TransitionStack-method show,TransitionLayer-method show,TransitionStack-method Transition-class Transition-classes TransitionData-class TransitionLayer-class TransitionStack-class
Extracting and replacing: class TransitionTransition-extract-replace transitionMatrix<- transitionMatrix<-,TransitionLayer,sparseMatrix-method TransitionStack<- [,TransitionLayer,matrix,missing,missing-method [,TransitionLayer,numeric,numeric,missing-method [<-,TransitionLayer,matrix,missing,ANY-method [<-,TransitionLayer,numeric,numeric,ANY-method [[,TransitionStack,numeric,missing-method [[<-,TransitionStack,numeric,missing,TransitionData-method
Extract or change elements of Transition* objectsmatrixValues matrixValues,TransitionLayer-method matrixValues,TransitionStack-method matrixValues<- matrixValues<-,TransitionLayer,character-method matrixValues<-,TransitionStack,character-method nlayers,TransitionLayer-method nlayers,TransitionStack-method Transition-slots transitionCells transitionCells,TransitionData-method transitionCells,TransitionLayer-method transitionData transitionData,TransitionLayer-method transitionData,TransitionStack-method transitionMatrix transitionMatrix,TransitionData,missing-method transitionMatrix,TransitionLayer,logical-method transitionMatrix,TransitionLayer,missing-method