{"id":16582980,"url":"https://github.com/edavidaja/urbanindex","last_synced_at":"2025-09-08T05:35:05.125Z","repository":{"id":56018093,"uuid":"255971072","full_name":"edavidaja/urbanindex","owner":"edavidaja","description":"recreating the 538 urban index","archived":false,"fork":false,"pushed_at":"2023-05-22T15:11:51.000Z","size":2858,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-06T02:44:12.152Z","etag":null,"topics":["538","rspatial","rstats"],"latest_commit_sha":null,"homepage":"https://edavidaja.com/posts/fivethirtyeight-urban-index/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edavidaja.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-04-15T16:12:00.000Z","updated_at":"2023-05-22T15:09:39.000Z","dependencies_parsed_at":"2023-12-03T14:45:42.966Z","dependency_job_id":null,"html_url":"https://github.com/edavidaja/urbanindex","commit_stats":{"total_commits":10,"total_committers":3,"mean_commits":"3.3333333333333335","dds":"0.30000000000000004","last_synced_commit":"36dc4c6dd83b20b8350b428168d36345200dd207"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/edavidaja/urbanindex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edavidaja%2Furbanindex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edavidaja%2Furbanindex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edavidaja%2Furbanindex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edavidaja%2Furbanindex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edavidaja","download_url":"https://codeload.github.com/edavidaja/urbanindex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edavidaja%2Furbanindex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274136902,"owners_count":25228479,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["538","rspatial","rstats"],"created_at":"2024-10-11T22:34:40.771Z","updated_at":"2025-09-08T05:35:05.084Z","avatar_url":"https://github.com/edavidaja.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\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# urbanindex\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\nincorrectly calculating the [538 urbanization index](https://fivethirtyeight.com/features/how-urban-or-rural-is-your-state-and-what-does-that-mean-for-the-2020-election/) for each census tract\n\n## inspiration\n\nhttps://twitter.com/NateSilver538/status/1200498385125433344\n\n## Installation\n\nYou can install urbanindex from [github](https://github.com/edavidaja/urbanindex) with:\n\n```{r, eval=FALSE} \ninstall.packages(\"edavidaja/urbanindex\")\n```\n\nif that doesn't work--have you met [`{renv}`](https://rstudio.github.io/renv/articles/renv.html)?\n\n## Example\n\n```{r example}\nlibrary(urbanindex)\nhead(pop_within_5_mi)\n```\n\n## garden of forking paths\n\na differently wrong approach uses `st_is_within_distance` to identify tract centroids within five miles of each other, available on the [centroid-self-join](https://github.com/edavidaja/urbanindex/tree/centroid-self-join) branch","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedavidaja%2Furbanindex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedavidaja%2Furbanindex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedavidaja%2Furbanindex/lists"}