{"id":19357969,"url":"https://github.com/populatetools/spanish-census-exploration","last_synced_at":"2025-08-02T21:33:34.748Z","repository":{"id":66472694,"uuid":"198232646","full_name":"PopulateTools/spanish-census-exploration","owner":"PopulateTools","description":"Source code of the Spanish census population analysis","archived":false,"fork":false,"pushed_at":"2019-07-23T08:59:43.000Z","size":43718,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-29T21:36:57.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://populate.tools/blog/exploracion-poblacion","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PopulateTools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2019-07-22T13:50:09.000Z","updated_at":"2024-10-13T20:57:37.000Z","dependencies_parsed_at":"2023-03-30T11:24:38.780Z","dependency_job_id":null,"html_url":"https://github.com/PopulateTools/spanish-census-exploration","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PopulateTools/spanish-census-exploration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PopulateTools%2Fspanish-census-exploration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PopulateTools%2Fspanish-census-exploration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PopulateTools%2Fspanish-census-exploration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PopulateTools%2Fspanish-census-exploration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PopulateTools","download_url":"https://codeload.github.com/PopulateTools/spanish-census-exploration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PopulateTools%2Fspanish-census-exploration/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268456753,"owners_count":24253278,"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-08-02T02:00:12.353Z","response_time":74,"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":[],"created_at":"2024-11-10T07:09:54.407Z","updated_at":"2025-08-02T21:33:34.720Z","avatar_url":"https://github.com/PopulateTools.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spanish census exploration\n\nThis repository contains the R code used to explore the data of the Spanish population census from\n1874 to 2011. Data is available in Spanish National Institute of Statistics [INE](https://www.ine.es/intercensal/intercensal.do?search=1\u0026cmbTipoBusq=0\u0026textoMunicipio=Ponferrada\u0026btnBuscarDenom=Consultar+selecci%F3n).\n\n\n## Data\n\nCensus data is not available in INE to be downloaded as a whole file, so we developed a [scrapper](https://gist.github.com/ferblape/e34c6cc07b7096c86f9f8ba27349d01b) and loaded it into [Populate\nData](https://data.populate.tools) to consume it as an API. The rest of data required is included in the `data/` repository.\n\nWe combined the census data with Rafael del Pino [Contabilidad Nacional Histórica](https://espacioinvestiga.org/bbdd-chne/) database, which is a very interesting dataset of almost 200 years of social and economic statistics of Spain.\n\n\n## Analysis content\n\nThe file `historic-data-analysis.R` contains both code to explore the data (although most of it has been removed for the shake of clarity) and code to generate the final charts\n\n\n## Some charts generated with this code\n\n![](http://gobierto-public-resources.s3.amazonaws.com/censo-ine-201907/censo-ine-201907-ciudades.png)\n\n![](http://gobierto-public-resources.s3.amazonaws.com/censo-ine-201907/censo-ine-201907-mapa.png)\n\n\n## Feedback and comments\n\nPlease, write to fernando@populate.tools if you have any comments or questions about this code. I'll be happy to discuss and to hear your feedback.\n\n\n## Special thanks\n\n- [Robin Lovelace](https://twitter.com/robinlovelace) for the book [Geocomputation with R](https://geocompr.robinlovelace.net/index.html)\n- [Beatriz Martínez](https://visualizados.com) for providing the Spanish IGN map features parsing code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopulatetools%2Fspanish-census-exploration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpopulatetools%2Fspanish-census-exploration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopulatetools%2Fspanish-census-exploration/lists"}