Science Score: 26.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
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.7%) to scientific vocabulary
Keywords
accessibility
r
transport
transport-accessibility
Last synced: 6 months ago
·
JSON representation
Repository
Calculate accessibility measures in R
Basic Info
- Host: GitHub
- Owner: ipeaGIT
- License: other
- Language: R
- Default Branch: main
- Homepage: https://ipeagit.github.io/accessibility/
- Size: 13 MB
Statistics
- Stars: 60
- Watchers: 3
- Forks: 9
- Open Issues: 6
- Releases: 7
Topics
accessibility
r
transport
transport-accessibility
Created over 3 years ago
· Last pushed about 1 year ago
Metadata Files
Readme
Changelog
License
Codemeta
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# accessibility
[](https://CRAN.R-project.org/package=accessibility)
[](https://github.com/ipeaGIT/accessibility/actions)
[](https://CRAN.R-project.org/package=accessibility)
[](https://app.codecov.io/gh/ipeaGIT/accessibility?branch=main)
[](https://lifecycle.r-lib.org/articles/stages.html)
**accessibility** offers a set of fast and convenient functions to help
conducting accessibility analyses. Given a pre-computed travel cost matrix and a
land use dataset (containing the location of jobs, healthcare and population,
for example), the package allows one to calculate accessibility levels and
accessibility poverty and inequality. The package covers the majority of the
most commonly used accessibility measures (such as cumulative opportunities,
gravity-based and floating catchment areas methods), as well as the most
frequently used inequality and poverty metrics (such as the Palma ratio, the
concentration and Theil indices and the FGT family of measures).
## Installation
Stable version:
```{r, eval = FALSE}
install.packages("accessibility")
```
Development version:
```{r, eval = FALSE}
# install.packages("remotes")
remotes::install_github("ipeaGIT/accessibility")
```
## Usage
This section aims to present a very brief overview of some of the packages'
features. Fore more details please read the vignettes:
- [Introduction to **accessibility**: calculating accessibility
measures](https://ipeagit.github.io/accessibility/articles/accessibility.html)
- [Decay
functions](https://ipeagit.github.io/accessibility/articles/decay_functions.html)
- [Calculating accessibility inequality and
poverty](https://ipeagit.github.io/accessibility/articles/inequality_and_poverty.html)
To calculate accessibility levels, one simply needs a pre-calculated travel
matrix and some land use data. Below we showcase some of the available
functions:
```{r}
library(accessibility)
data_dir <- system.file("extdata", package = "accessibility")
travel_matrix <- readRDS(file.path(data_dir, "travel_matrix.rds"))
land_use_data <- readRDS(file.path(data_dir, "land_use_data.rds"))
cum_cutoff <- cumulative_cutoff(
travel_matrix,
land_use_data,
opportunity = "jobs",
travel_cost = "travel_time",
cutoff = 30
)
head(cum_cutoff)
grav <- gravity(
travel_matrix,
land_use_data,
opportunity = "schools",
travel_cost = "travel_time",
decay_function = decay_exponential(decay_value = 0.2)
)
head(grav)
fca <- floating_catchment_area(
travel_matrix,
land_use_data,
opportunity = "jobs",
travel_cost = "travel_time",
demand = "population",
method = "2sfca",
decay_function = decay_binary(cutoff = 50)
)
head(fca)
```
Calculating inequality and poverty levels is equally easy. Below we use the
previously calculated cumulative accessibility dataset to show some of the
available inequality and poverty functions:
```{r}
palma <- palma_ratio(
cum_cutoff,
sociodemographic_data = land_use_data,
opportunity = "jobs",
population = "population",
income = "income_per_capita"
)
palma
poverty <- fgt_poverty(
cum_cutoff,
sociodemographic_data = land_use_data,
opportunity = "jobs",
population = "population",
poverty_line = 95368
)
poverty
```
## Related work:
- [r5r](https://github.com/ipeaGIT/r5r): Rapid Realistic Routing with R5 in R
- [tracc](https://github.com/jamaps/tracc): Transport accessibility measures in
Python
- [access](https://access.readthedocs.io/en/latest/): Spatial Access for PySAL
- [aceso](https://github.com/tetraptych/aceso): a lightweight Python package for
measuring spatial accessibility
## Acknowledgement
**accessibility** is developed by a team at the Institute for Applied Economic Research (Ipea), Brazil.
Owner
- Name: IpeaDIRUR
- Login: ipeaGIT
- Kind: organization
- Repositories: 19
- Profile: https://github.com/ipeaGIT
CodeMeta (codemeta.json)
{
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"identifier": "accessibility",
"description": "A set of fast and convenient functions to help conducting accessibility analyses. Given a pre-computed travel cost matrix and a land use dataset (containing the location of jobs, healthcare and population, for example), the package allows one to calculate accessibility levels and accessibility poverty and inequality. The package covers the majority of the most commonly used accessibility measures (such as cumulative opportunities, gravity-based and floating catchment areas methods), as well as the most frequently used inequality and poverty metrics (such as the Palma ratio, the concentration and Theil indices and the FGT family of measures).",
"name": "accessibility: Transport Accessibility Measures",
"relatedLink": [
"https://ipeagit.github.io/accessibility/",
"https://CRAN.R-project.org/package=accessibility"
],
"codeRepository": "https://github.com/ipeaGIT/accessibility",
"issueTracker": "https://github.com/ipeaGIT/accessibility/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "1.4.0.9000",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.3.3 (2024-02-29)",
"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": "Rafael H. M.",
"familyName": "Pereira",
"email": "rafa.pereira.br@gmail.com",
"@id": "https://orcid.org/0000-0003-2125-7465"
},
{
"@type": "Person",
"givenName": "Daniel",
"familyName": "Herszenhut",
"email": "dhersz@gmail.com",
"@id": "https://orcid.org/0000-0001-8066-1105"
}
],
"contributor": [
{
"@type": "Person",
"givenName": "Joey",
"familyName": "Reid"
}
],
"copyrightHolder": [
{
"@type": "Organization",
"name": "Ipea - Institute for Applied Economic Research"
}
],
"funder": [
{
"@type": "Organization",
"name": "Ipea - Institute for Applied Economic Research"
}
],
"maintainer": [
{
"@type": "Person",
"givenName": "Daniel",
"familyName": "Herszenhut",
"email": "dhersz@gmail.com",
"@id": "https://orcid.org/0000-0001-8066-1105"
}
],
"softwareSuggestions": [
{
"@type": "SoftwareApplication",
"identifier": "covr",
"name": "covr",
"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=covr"
},
{
"@type": "SoftwareApplication",
"identifier": "ggplot2",
"name": "ggplot2",
"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=ggplot2"
},
{
"@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": "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": "sf",
"name": "sf",
"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=sf"
},
{
"@type": "SoftwareApplication",
"identifier": "testthat",
"name": "testthat",
"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"
},
{
"@type": "SoftwareApplication",
"identifier": "tibble",
"name": "tibble",
"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=tibble"
}
],
"softwareRequirements": {
"1": {
"@type": "SoftwareApplication",
"identifier": "R",
"name": "R",
"version": ">= 3.5.0"
},
"2": {
"@type": "SoftwareApplication",
"identifier": "checkmate",
"name": "checkmate",
"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=checkmate"
},
"3": {
"@type": "SoftwareApplication",
"identifier": "data.table",
"name": "data.table",
"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=data.table"
},
"4": {
"@type": "SoftwareApplication",
"identifier": "Hmisc",
"name": "Hmisc",
"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=Hmisc"
},
"5": {
"@type": "SoftwareApplication",
"identifier": "Rdpack",
"name": "Rdpack",
"version": ">= 0.7",
"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=Rdpack"
},
"6": {
"@type": "SoftwareApplication",
"identifier": "stats",
"name": "stats"
},
"7": {
"@type": "SoftwareApplication",
"identifier": "utils",
"name": "utils"
},
"SystemRequirements": null
},
"fileSize": "3382.26KB",
"releaseNotes": "https://github.com/ipeaGIT/accessibility/blob/master/NEWS.md",
"readme": "https://github.com/ipeaGIT/accessibility/blob/main/README.md",
"contIntegration": [
"https://github.com/ipeaGIT/accessibility/actions",
"https://app.codecov.io/gh/ipeaGIT/accessibility?branch=main"
],
"developmentStatus": "https://lifecycle.r-lib.org/articles/stages.html",
"keywords": [
"accessibility",
"r",
"transport",
"transport-accessibility"
]
}
GitHub Events
Total
- Issues event: 1
- Watch event: 3
- Issue comment event: 1
- Push event: 4
Last Year
- Issues event: 1
- Watch event: 3
- Issue comment event: 1
- Push event: 4
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Daniel Herszenhut | d****z@g****m | 203 |
| rafapereirabr | r****r@g****m | 99 |
| rafapereirabr | r****r@g****m | 5 |
| Antonio Paez | p****a@g****m | 2 |
| olivroy | 5****y | 1 |
| Joey Reid | b****e | 1 |
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 51
- Total pull requests: 6
- Average time to close issues: about 2 months
- Average time to close pull requests: 7 days
- Total issue authors: 6
- Total pull request authors: 5
- Average comments per issue: 1.88
- Average comments per pull request: 1.33
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 2
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.5
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- rafapereirabr (35)
- dhersz (10)
- botanize (1)
- Mehrnaz-accessibility (1)
- baarthur (1)
Pull Request Authors
- botanize (2)
- paezha (2)
- soukhova (1)
- olivroy (1)
- dhersz (1)
Top Labels
Issue Labels
v1.4.0 (3)
help wanted (1)
enhancement (1)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 502 last-month
- Total dependent packages: 1
- Total dependent repositories: 0
- Total versions: 7
- Total maintainers: 1
cran.r-project.org: accessibility
Transport Accessibility Measures
- Homepage: https://github.com/ipeaGIT/accessibility
- Documentation: http://cran.r-project.org/web/packages/accessibility/accessibility.pdf
- License: MIT + file LICENSE
-
Latest release: 1.4.0
published almost 2 years ago
Rankings
Stargazers count: 8.9%
Forks count: 12.8%
Average: 23.1%
Downloads: 28.6%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Maintainers (1)
Last synced:
about 1 year ago
Dependencies
.github/workflows/pkgdown.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/rcmdcheck.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-r v1 composite
DESCRIPTION
cran
- R >= 3.5.0 depends
- Rdpack >= 0.7 imports
- checkmate * imports
- data.table * imports
- utils * imports
- covr * suggests
- ggplot2 * suggests
- knitr * suggests
- rmarkdown * suggests
- sf * suggests
- stats * suggests
- testthat * suggests