{"id":19590218,"url":"https://github.com/guyabel/wcde","last_synced_at":"2025-04-27T12:33:13.618Z","repository":{"id":38362159,"uuid":"310886299","full_name":"guyabel/wcde","owner":"guyabel","description":"Package to download data from the Wittgenstein Centre Human Capital Data Explorer into R","archived":false,"fork":false,"pushed_at":"2025-03-25T02:27:11.000Z","size":384349,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T00:37:01.804Z","etag":null,"topics":["demography","demograpic-data","population-data","r","rstats","rstats-package"],"latest_commit_sha":null,"homepage":"https://guyabel.github.io/wcde/","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/guyabel.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":"docs/CONTRIBUTING.html","funding":null,"license":null,"code_of_conduct":"docs/CODE_OF_CONDUCT.html","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"docs/SUPPORT.html","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-07T16:30:34.000Z","updated_at":"2025-03-25T02:22:17.000Z","dependencies_parsed_at":"2024-01-16T14:03:54.531Z","dependency_job_id":"ab208bb0-f60c-4ccc-abaa-944ffd2e5da1","html_url":"https://github.com/guyabel/wcde","commit_stats":{"total_commits":70,"total_committers":1,"mean_commits":70.0,"dds":0.0,"last_synced_commit":"dd364fb8924ff651f7dd8a981d9e9f4cc340c588"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyabel%2Fwcde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyabel%2Fwcde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyabel%2Fwcde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyabel%2Fwcde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guyabel","download_url":"https://codeload.github.com/guyabel/wcde/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251138934,"owners_count":21541976,"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":["demography","demograpic-data","population-data","r","rstats","rstats-package"],"created_at":"2024-11-11T08:23:54.495Z","updated_at":"2025-04-27T12:33:12.492Z","avatar_url":"https://github.com/guyabel.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# wcde \u003ca href=\"https://guyabel.github.io/wcde/\"\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"138\"/\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/wcde)](https://CRAN.R-project.org/package=wcde)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/grand-total/wcde?color=blue)](https://r-pkg.org/pkg/wcde)\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n[![R-CMD-check](https://github.com/guyabel/wcde/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/guyabel/wcde/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\n\u003c!-- \u003cimg src='https://raw.githubusercontent.com/guyabel/wcde/main/hex/logo_transp.png' align=\"right\" height=\"200\" style=\"float:right; height:200px;\"/\u003e --\u003e\n\nDownload data from the [Wittgenstein Centre for Demography and Human Capital Data Explorer](http://dataexplorer.wittgensteincentre.org/) into R\n\nSee the [pkgdown site](https://guyabel.github.io/wcde/) for full details.\n\n## Installation\n\nYou can install the released version of `wcde` from [CRAN](https://CRAN.R-project.org) with:\n\n```{r eval=FALSE}\ninstall.packages(\"wcde\")\n```\n\nInstall the developmental version with:\n\n```{r eval=FALSE}\nlibrary(devtools)\ninstall_github(\"guyabel/wcde\", ref = \"main\")\n```\n\n## Example\n\nDownload data based on a indicator, scenario and country code:\n\n```{r example}\nlibrary(wcde)\n\n# SSP2 education specific tfr for Austria\nget_wcde(indicator = \"etfr\", country_name = \"Austria\")\n\n# SSP2 education specific population sizes for Iran and Kenya\nget_wcde(indicator = \"pop\", country_code = c(364, 404), pop_edu = \"four\")\n\n# SSP1, 2 and 3 gender gaps in educational attainment (15+) for all countries\nget_wcde(indicator = \"ggapedu15\", scenario = 1:3)\n```\n\n## Vignette\n\nThe [vignette](https://guyabel.github.io/wcde/articles/wcde.html) provides many more examples on how to use the package to download data and produce plots from the Wittgenstein Centre Human Capital Data Explorer.\n\n```{r, echo=FALSE, eval=FALSE}\n# run by hand\nlibrary(gganimate)\n\nd \u003c- get_wcde(indicator = \"epop\", country_code = 900) \n\ng \u003c- d %\u003e%\n  edu_group_sum(n = 6) %\u003e%\n  mutate(pop = ifelse(test = sex == \"Male\", yes = -epop, no = epop),\n         pop = pop/1e3,\n         pop_max = ifelse(sex == \"Male\", -max(pop), max(pop))) %\u003e%\n  ggplot(mapping = aes(x = pop, y = age, fill = fct_rev(education))) +\n  geom_col() +\n  geom_vline(xintercept = 0, colour = \"black\") +\n  scale_x_continuous(labels = abs, expand = c(0, 0)) +\n  scale_fill_manual(values = wic_col6, name = \"Education\") +\n  facet_wrap(facets = \"sex\", scales = \"free_x\", strip.position = \"bottom\") +\n  geom_blank(mapping = aes(x = pop_max * 1.1)) +\n  theme(panel.spacing.x = unit(0, \"pt\"),\n        strip.placement = \"outside\",\n        strip.background = element_rect(fill = \"transparent\"),\n        strip.text.x = element_text(margin = margin( b = 0, t = 0))) +\n  transition_time(time = year) +\n  labs(x = \"Population (millions)\", y = \"Age\", \n       title = 'SSP2 World Population {round(frame_time)}')\n\nanimate(g, width = 15, height = 15, units = \"cm\", res = 200, \n        renderer = gifski_renderer())\n\nanim_save(filename = \"world6_ssp2.gif\")\n```\n\n```{r echo=FALSE, out.height=\"600px\", out.width=\"600px\"}\nknitr::include_graphics('https://raw.githubusercontent.com/guyabel/wcde/main/world6_ssp2.gif')\n```\n\n\u003c!-- \u003cimg src='world6_ssp2.gif' height=\"600\"/\u003e --\u003e\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguyabel%2Fwcde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguyabel%2Fwcde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguyabel%2Fwcde/lists"}