{"id":19856398,"url":"https://github.com/ipeagit/uci","last_synced_at":"2025-05-02T01:31:29.327Z","repository":{"id":173804815,"uuid":"651310797","full_name":"ipeaGIT/uci","owner":"ipeaGIT","description":"Urban Centrality Index","archived":false,"fork":false,"pushed_at":"2025-02-12T21:43:17.000Z","size":3358,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T11:39:36.719Z","etag":null,"topics":["r","urban-data-science","urban-form","urban-morphometrics"],"latest_commit_sha":null,"homepage":"https://ipeagit.github.io/uci/","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.md","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":null}},"created_at":"2023-06-09T01:17:28.000Z","updated_at":"2025-02-12T21:39:07.000Z","dependencies_parsed_at":"2025-02-12T22:26:44.725Z","dependency_job_id":"cefa3d2e-0ff7-4dc0-9b3c-15a9936f41d5","html_url":"https://github.com/ipeaGIT/uci","commit_stats":null,"previous_names":["rafapereirabr/uci","ipeagit/uci"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipeaGIT%2Fuci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipeaGIT%2Fuci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipeaGIT%2Fuci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipeaGIT%2Fuci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipeaGIT","download_url":"https://codeload.github.com/ipeaGIT/uci/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251969422,"owners_count":21673199,"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":["r","urban-data-science","urban-form","urban-morphometrics"],"created_at":"2024-11-12T14:15:25.338Z","updated_at":"2025-05-02T01:31:28.466Z","avatar_url":"https://github.com/ipeaGIT.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg align=\"right\" src=\"https://github.com/ipeaGIT/uci/raw/main/man/figures/uci_hex.png\" alt=\"ipea\" width=\"250\"\u003e\n\n# uci: Urban Centrality Index\n\n[![CRAN\n   status](https://www.r-pkg.org/badges/version/uci)](https://CRAN.R-project.org/package=uci)\n   [![CRAN/METACRAN Total downloads](https://cranlogs.r-pkg.org/badges/grand-total/uci?color=blue)](https://CRAN.R-project.org/package=uci)\n[![R-CMD-check](https://github.com/ipeaGIT/uci/workflows/rcmdcheck/badge.svg)](https://github.com/ipeaGIT/uci/actions)\n[![Codecov test\ncoverage](https://codecov.io/gh/ipeaGIT/uci/branch/main/graph/badge.svg)](https://app.codecov.io/gh/ipeaGIT/uci?branch=main)\n[![DOI](https://img.shields.io/badge/DOI-10.1111/gean.12002-blue)](https://doi.org/10.1111/gean.12002)\n[![Lifecycle:\n     experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html)\n\n**uci** is an `R` package to calculate the Urban Centrality Index (UCI) originally proposed by Pereira et al., (2013). The UCI measures the extent to which the spatial organization of a city or region varies from extreme polycentric to extreme monocentric in a continuous scale from 0 to 1. Values close to 0 indicate more polycentric patterns and values close to 1 indicate a more monocentric urban form. More info on [this vignette](https://ipeagit.github.io/uci/articles/uci.html).\n\n* [Link to ungated PDF of the Pereira et al., (2013) paper](https://www.urbandemographics.org/publication/2013_urban_centrality_index/)\n\n## Installation\n\n\n```R\n# from CRAN\ninstall.packages('uci')\n\n# or use the development version with latest features\nutils::remove.packages('uci')\ndevtools::install_github(\"ipeaGIT/uci\")\n```\n\n\n## Basic Usage\n\n```R\nlibrary(uci)\n\n# load data\ndata_dir \u003c- system.file(\"extdata\", package = \"uci\")\ngrid \u003c- readRDS(file.path(data_dir, \"grid_bho.rds\"))\n\nhead(grid)\n#\u003e Simple feature collection with 6 features and 4 fields\n#\u003e Geometry type: POLYGON\n#\u003e Dimension:     XY\n#\u003e Bounding box:  xmin: -43.96438 ymin: -19.97414 xmax: -43.93284 ymax: -19.96717\n#\u003e Geodetic CRS:  WGS 84\n#\u003e                id population jobs schools                       geometry\n#\u003e 1 89a881a5a2bffff        439  180       0 POLYGON ((-43.9431 -19.9741...\n#\u003e 2 89a881a5a2fffff        266  134       0 POLYGON ((-43.94612 -19.972...\n#\u003e 3 89a881a5a67ffff       1069  143       0 POLYGON ((-43.94001 -19.972...\n#\u003e 4 89a881a5a6bffff        245   61       0 POLYGON ((-43.9339 -19.9728...\n#\u003e 5 89a881a5a6fffff        298   11       0 POLYGON ((-43.93691 -19.971...\n#\u003e 6 89a881a5b03ffff        555 1071       0 POLYGON ((-43.96136 -19.970...\n\n# calculate UCI\ndf \u003c- uci(\n       sf_object = grid,\n       var_name = 'jobs',\n       bootstrap_border = FALSE,\n       showProgress = TRUE\n       )\n\nhead(df)\n#\u003e         UCI location_coef spatial_separation spatial_separation_max\n#\u003e 1 0.2538635     0.5278007           3880.114               7475.899\n\n```\n\n\n# Citation \u003cimg align=\"right\" src=\"https://github.com/ipeaGIT/uci/raw/main/man/figures/ipea_logo.png\" alt=\"ipea\" width=\"300\"\u003e\n\n The R package **uci** is developed by a team at the Institute for Applied \n Economic Research (Ipea), Brazil. If you use this package in research \n publications, please cite it as:\n\n* Pereira, R. H. M., Nadalin, V., Monasterio, L., \u0026 Albuquerque, P. H. (2013). **Urban centrality: a simple index**. *Geographical analysis*, 45(1), 77-89. [https://www.doi.org/10.1111/gean.12002](https://www.doi.org/10.1111/gean.12002)\n\n\nBibTeX:\n```\n@article{pereira2013urbancentrality,\n  title = {Urban {{Centrality}}: {{A Simple Index}}},\n  author = {Pereira, Rafael H. M. and Nadalin, Vanessa and Monasterio, Leonardo and Albuquerque, Pedro H. M.},\n  year = {2013},\n  journal = {Geographical Analysis},\n  volume = {45},\n  number = {1},\n  pages = {77--89},\n  issn = {1538-4632},\n  doi = {10.1111/gean.12002}\n}\n```\n\n# Acknowledgement\nThe Hex image above illustrates Christaller’s Central Place Theory. It was adapted from an image originally created by Christaller and adapted by Becerra, 2015.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipeagit%2Fuci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipeagit%2Fuci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipeagit%2Fuci/lists"}