{"id":17786028,"url":"https://github.com/ipeagit/accessibility","last_synced_at":"2025-04-05T18:12:00.752Z","repository":{"id":37273673,"uuid":"498441854","full_name":"ipeaGIT/accessibility","owner":"ipeaGIT","description":"Calculate accessibility measures in R","archived":false,"fork":false,"pushed_at":"2025-01-17T18:06:29.000Z","size":13632,"stargazers_count":55,"open_issues_count":5,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-19T14:37:32.398Z","etag":null,"topics":["accessibility","r","transport","transport-accessibility"],"latest_commit_sha":null,"homepage":"https://ipeagit.github.io/accessibility/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ipeaGIT.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json"}},"created_at":"2022-05-31T17:54:29.000Z","updated_at":"2025-01-17T17:39:29.000Z","dependencies_parsed_at":"2024-07-17T14:46:56.268Z","dependency_job_id":"53e7fe9f-54f9-4e26-b83d-c6882db274e9","html_url":"https://github.com/ipeaGIT/accessibility","commit_stats":{"total_commits":307,"total_committers":6,"mean_commits":"51.166666666666664","dds":"0.35179153094462545","last_synced_commit":"24de567cd7346cb00a218b71e50674cc259e5985"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipeaGIT%2Faccessibility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipeaGIT%2Faccessibility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipeaGIT%2Faccessibility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipeaGIT%2Faccessibility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipeaGIT","download_url":"https://codeload.github.com/ipeaGIT/accessibility/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859545,"owners_count":19708862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accessibility","r","transport","transport-accessibility"],"created_at":"2024-10-27T09:04:02.465Z","updated_at":"2025-02-25T11:11:35.398Z","avatar_url":"https://github.com/ipeaGIT.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# accessibility \u003cimg align=\"right\" src=\"man/figures/logo.png\" alt=\"logo\" width=\"180\"\u003e\n\n[![CRAN\nstatus](https://www.r-pkg.org/badges/version/accessibility)](https://CRAN.R-project.org/package=accessibility)\n[![rcmdcheck](https://github.com/ipeaGIT/accessibility/workflows/rcmdcheck/badge.svg)](https://github.com/ipeaGIT/accessibility/actions)\n[![CRAN/METACRAN Total\ndownloads](https://cranlogs.r-pkg.org/badges/grand-total/accessibility?color=yellow)](https://CRAN.R-project.org/package=accessibility)\n[![Codecov test\ncoverage](https://codecov.io/gh/ipeaGIT/accessibility/branch/main/graph/badge.svg)](https://app.codecov.io/gh/ipeaGIT/accessibility?branch=main)\n[![Lifecycle:\nstable](https://lifecycle.r-lib.org/articles/figures/lifecycle-stable.svg)](https://lifecycle.r-lib.org/articles/stages.html)\n\n**accessibility** offers a set of fast and convenient functions to help\nconducting accessibility analyses. Given a pre-computed travel cost matrix and a\nland use dataset (containing the location of jobs, healthcare and population,\nfor example), the package allows one to calculate accessibility levels and\naccessibility poverty and inequality. The package covers the majority of the\nmost commonly used accessibility measures (such as cumulative opportunities,\ngravity-based and floating catchment areas methods), as well as the most\nfrequently used inequality and poverty metrics (such as the Palma ratio, the\nconcentration and Theil indices and the FGT family of measures).\n\n## Installation\n\nStable version:\n\n```{r, eval = FALSE}\ninstall.packages(\"accessibility\")\n```\n\nDevelopment version:\n\n```{r, eval = FALSE}\n# install.packages(\"remotes\")\nremotes::install_github(\"ipeaGIT/accessibility\")\n```\n\n## Usage\n\nThis section aims to present a very brief overview of some of the packages'\nfeatures. Fore more details please read the vignettes:\n\n- [Introduction to **accessibility**: calculating accessibility\n  measures](https://ipeagit.github.io/accessibility/articles/accessibility.html)\n- [Decay\n  functions](https://ipeagit.github.io/accessibility/articles/decay_functions.html)\n- [Calculating accessibility inequality and\n  poverty](https://ipeagit.github.io/accessibility/articles/inequality_and_poverty.html)\n\nTo calculate accessibility levels, one simply needs a pre-calculated travel\nmatrix and some land use data. Below we showcase some of the available\nfunctions:\n\n```{r}\nlibrary(accessibility)\n\ndata_dir \u003c- system.file(\"extdata\", package = \"accessibility\")\ntravel_matrix \u003c- readRDS(file.path(data_dir, \"travel_matrix.rds\"))\nland_use_data \u003c- readRDS(file.path(data_dir, \"land_use_data.rds\"))\n\ncum_cutoff \u003c- cumulative_cutoff(\n  travel_matrix,\n  land_use_data,\n  opportunity = \"jobs\",\n  travel_cost = \"travel_time\",\n  cutoff = 30\n)\nhead(cum_cutoff)\n\ngrav \u003c- gravity(\n  travel_matrix,\n  land_use_data,\n  opportunity = \"schools\",\n  travel_cost = \"travel_time\",\n  decay_function = decay_exponential(decay_value = 0.2)\n)\nhead(grav)\n\nfca \u003c- floating_catchment_area(\n  travel_matrix,\n  land_use_data,\n  opportunity = \"jobs\",\n  travel_cost = \"travel_time\",\n  demand = \"population\",\n  method = \"2sfca\",\n  decay_function = decay_binary(cutoff = 50)\n)\nhead(fca)\n```\n\nCalculating inequality and poverty levels is equally easy. Below we use the\npreviously calculated cumulative accessibility dataset to show some of the\navailable inequality and poverty functions:\n\n```{r}\npalma \u003c- palma_ratio(\n  cum_cutoff,\n  sociodemographic_data = land_use_data,\n  opportunity = \"jobs\",\n  population = \"population\",\n  income = \"income_per_capita\"\n)\npalma\n\npoverty \u003c- fgt_poverty(\n  cum_cutoff,\n  sociodemographic_data = land_use_data,\n  opportunity = \"jobs\",\n  population = \"population\",\n  poverty_line = 95368\n)\npoverty\n```\n\n## Related work:\n\n- [r5r](https://github.com/ipeaGIT/r5r): Rapid Realistic Routing with R5 in R\n- [tracc](https://github.com/jamaps/tracc): Transport accessibility measures in\n  Python\n- [access](https://access.readthedocs.io/en/latest/): Spatial Access for PySAL\n- [aceso](https://github.com/tetraptych/aceso): a lightweight Python package for\n  measuring spatial accessibility\n\n## Acknowledgement \u003ca href=\"https://www.ipea.gov.br\"\u003e\u003cimg src=\"man/figures/ipea_logo.png\" alt=\"IPEA\" align=\"right\" width=\"300\"/\u003e\u003c/a\u003e\n\n**accessibility** is developed by a team at the Institute for Applied Economic Research (Ipea), Brazil.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipeagit%2Faccessibility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipeagit%2Faccessibility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipeagit%2Faccessibility/lists"}