gdistance

Calculate distances and routes on geographic grids.

https://github.com/agrdatasci/gdistance

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.3%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Calculate distances and routes on geographic grids.

Basic Info
Statistics
  • Stars: 16
  • Watchers: 7
  • Forks: 6
  • Open Issues: 5
  • Releases: 0
Created over 6 years ago · Last pushed over 2 years ago
Metadata Files
Readme Changelog Contributing Code of conduct Codemeta

README.md

gdistance

CRAN status cran checks lifecycle Downloads DOI <!-- badges: end -->

gdistance: Distances and Routes on Geographical Grids

Overview

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 may also have applications in other fields of geospatial analysis.

Package website

https://agrdatasci.github.io/gdistance/

Installation

The package may be installed from CRAN via

r install.packages("gdistance")

The development version can be installed via

r library("devtools") install_github("agrdatasci/gdistance")

Going further

The full functionality of gdistance is illustrated in the package vignette. The vignette can be found on the package website or from within R once the package has been installed, e.g. via

r vignette("Overview", package = "gdistance")

Meta

  • Please report any issues or bugs.

  • License: GPL-3.

  • Get citation information for gdistance in R by typing citation(package = "gdistance").

  • You are welcome to contribute to the gdistance project. Please read our contribution guidelines.

  • Please note that the gdistance project is released with a Contributor Code of Conduct. By participating in the gdistance project you agree to abide by its terms.

Owner

  • Name: AgrDataSci
  • Login: AgrDataSci
  • Kind: organization
  • Email: k.desousa@cgiar.org
  • Location: France

We develop methods and tools to support sustainable food systems, rural development and digital inclusion

CodeMeta (codemeta.json)

{
  "@context": "https://doi.org/10.5063/schema/codemeta-2.0",
  "@type": "SoftwareSourceCode",
  "identifier": "gdistance",
  "description": "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.",
  "name": "gdistance: Distances and Routes on Geographical Grids",
  "codeRepository": "https://AgrDataSci.github.io/gdistance/",
  "issueTracker": "https://github.com/AgrDataSci/gdistance/issues",
  "license": "https://spdx.org/licenses/GPL-2.0",
  "version": "1.6",
  "programmingLanguage": {
    "@type": "ComputerLanguage",
    "name": "R",
    "url": "https://r-project.org"
  },
  "runtimePlatform": "R version 4.2.1 (2022-06-23)",
  "provider": {
    "@id": "https://cran.r-project.org",
    "@type": "Organization",
    "name": "Comprehensive R Archive Network (CRAN)",
    "url": "https://cran.r-project.org"
  },
  "author": [
    {
      "@type": "Person",
      "givenName": "Jacob",
      "familyName": "van Etten",
      "@id": "https://orcid.org/0000-0001-7554-2558"
    }
  ],
  "contributor": [
    {
      "@type": "Person",
      "givenName": "Kau",
      "familyName": "de Sousa",
      "email": "desousa.kaue@gmail.com",
      "@id": "https://orcid.org/0000-0002-7571-7845"
    }
  ],
  "maintainer": [
    {
      "@type": "Person",
      "givenName": "Kau",
      "familyName": "de Sousa",
      "email": "desousa.kaue@gmail.com",
      "@id": "https://orcid.org/0000-0002-7571-7845"
    }
  ],
  "softwareSuggestions": [
    {
      "@type": "SoftwareApplication",
      "identifier": "knitr",
      "name": "knitr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=knitr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "markdown",
      "name": "markdown",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=markdown"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "rmarkdown",
      "name": "rmarkdown",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=rmarkdown"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "testthat",
      "name": "testthat",
      "version": ">= 2.1.0",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=testthat"
    }
  ],
  "softwareRequirements": {
    "1": {
      "@type": "SoftwareApplication",
      "identifier": "R",
      "name": "R",
      "version": ">= 3.2.0"
    },
    "2": {
      "@type": "SoftwareApplication",
      "identifier": "raster",
      "name": "raster",
      "version": ">= 1.9-19",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=raster"
    },
    "3": {
      "@type": "SoftwareApplication",
      "identifier": "methods",
      "name": "methods"
    },
    "4": {
      "@type": "SoftwareApplication",
      "identifier": "igraph",
      "name": "igraph",
      "version": ">= 0.7.0",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=igraph"
    },
    "5": {
      "@type": "SoftwareApplication",
      "identifier": "Matrix",
      "name": "Matrix",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=Matrix"
    },
    "6": {
      "@type": "SoftwareApplication",
      "identifier": "sp",
      "name": "sp",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=sp"
    },
    "7": {
      "@type": "SoftwareApplication",
      "identifier": "stats",
      "name": "stats"
    },
    "SystemRequirements": null
  },
  "fileSize": "1178.513KB",
  "citation": [
    {
      "@type": "ScholarlyArticle",
      "datePublished": "2017",
      "author": [
        {
          "@type": "Person",
          "givenName": "Jacob",
          "familyName": "van Etten"
        }
      ],
      "name": "R Package gdistance: Distances and Routes on Geographical Grids",
      "identifier": "10.18637/jss.v076.i13",
      "pagination": "21",
      "@id": "https://doi.org/10.18637/jss.v076.i13",
      "sameAs": "https://doi.org/10.18637/jss.v076.i13",
      "isPartOf": {
        "@type": "PublicationIssue",
        "issueNumber": "13",
        "datePublished": "2017",
        "isPartOf": {
          "@type": [
            "PublicationVolume",
            "Periodical"
          ],
          "volumeNumber": "76",
          "name": "Journal of Statistical Software"
        }
      }
    }
  ]
}

GitHub Events

Total
  • Watch event: 2
  • Issue comment event: 1
  • Fork event: 1
Last Year
  • Watch event: 2
  • Issue comment event: 1
  • Fork event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 58
  • Total Committers: 3
  • Avg Commits per committer: 19.333
  • Development Distribution Score (DDS): 0.276
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Andrew Marx a****x@g****m 42
kauedesousa k****a@i****o 15
Hugo Gruson h****n@p****m 1
Committer Domains (Top 20 + Academic)
inn.no: 1

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 22
  • Total pull requests: 2
  • Average time to close issues: 7 months
  • Average time to close pull requests: about 4 hours
  • Total issue authors: 20
  • Total pull request authors: 2
  • Average comments per issue: 3.18
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • kauedesousa (2)
  • ChristianDueben (2)
  • CCheCastaldo (1)
  • pairsa (1)
  • olenaboiko303 (1)
  • benjaminhlina (1)
  • andrewmarx (1)
  • damianooldoni (1)
  • lroich (1)
  • fleurhierink (1)
  • lplough (1)
  • ZekeMarshall (1)
  • rsbivand (1)
  • frederikvand (1)
  • jsta (1)
Pull Request Authors
  • Bisaloo (1)
  • microly (1)
Top Labels
Issue Labels
bug (4) help wanted (1) enhancement (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 3,481 last-month
  • Total docker downloads: 1,419
  • Total dependent packages: 26
  • Total dependent repositories: 54
  • Total versions: 16
  • Total maintainers: 1
cran.r-project.org: gdistance

Distances and Routes on Geographical Grids

  • Versions: 16
  • Dependent Packages: 26
  • Dependent Repositories: 54
  • Downloads: 3,481 Last month
  • Docker Downloads: 1,419
Rankings
Dependent packages count: 2.8%
Dependent repos count: 3.3%
Downloads: 7.2%
Average: 8.8%
Forks count: 9.6%
Stargazers count: 13.6%
Docker downloads count: 16.0%
Maintainers (1)
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • Matrix * depends
  • R >= 3.2.0 depends
  • igraph >= 0.7.0 depends
  • methods * depends
  • raster >= 1.9 depends
  • sp * imports
  • stats * imports
  • knitr * suggests
  • markdown * suggests
  • rmarkdown * suggests
  • testthat >= 2.1.0 suggests
.github/workflows/main.yml actions
  • actions/cache v1 composite
  • actions/checkout v2 composite
  • actions/upload-artifact master composite
  • r-lib/actions/setup-pandoc master composite
  • r-lib/actions/setup-r master composite