{"id":17855382,"url":"https://github.com/m-muecke/ecbr","last_synced_at":"2025-03-20T13:30:34.177Z","repository":{"id":219605918,"uuid":"749448017","full_name":"m-muecke/ecbr","owner":"m-muecke","description":"R client for the European Central Bank (ECB) API","archived":true,"fork":false,"pushed_at":"2024-07-03T13:13:03.000Z","size":5779,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T01:42:59.568Z","etag":null,"topics":["ecb","r"],"latest_commit_sha":null,"homepage":"https://m-muecke.github.io/ecbr/","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/m-muecke.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":null}},"created_at":"2024-01-28T16:07:53.000Z","updated_at":"2025-01-14T13:20:25.000Z","dependencies_parsed_at":"2024-05-20T22:54:50.426Z","dependency_job_id":"2400d904-b3b1-46d2-b0f2-7ddd55ad9cd3","html_url":"https://github.com/m-muecke/ecbr","commit_stats":null,"previous_names":["m-muecke/ecbr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-muecke%2Fecbr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-muecke%2Fecbr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-muecke%2Fecbr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-muecke%2Fecbr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-muecke","download_url":"https://codeload.github.com/m-muecke/ecbr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244619148,"owners_count":20482369,"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":["ecb","r"],"created_at":"2024-10-28T02:22:45.739Z","updated_at":"2025-03-20T13:30:33.743Z","avatar_url":"https://github.com/m-muecke.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)\noptions(tibble.print_min = 5L, tibble.print_max = 5L)\n```\n\n# ecbr\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: superseded](https://img.shields.io/badge/lifecycle-superseded-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html#superseded)\n[![R-CMD-check](https://github.com/m-muecke/ecbr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/m-muecke/ecbr/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\n\n\u003e Note this package is retired in favor of the [bbk](https://github.com/m-muecke/bbk) package,\n\u003e which provides additional central bank data sources.\n\necbr is a minimal R client for the [ECB API](https://data.ecb.europa.eu/help/api/overview).\n\n## Installation\nYou can install the development version of ecbr from [GitHub](https://github.com/) with:\n\n```{r, eval = FALSE}\n# install.packages(\"pak\")\npak::pak(\"m-muecke/ecbr\")\n```\n\n## Usage\n\n```{r demo, message = FALSE}\nlibrary(ecbr)\n\n# fetch US dollar/Euro exchange rate\nfx_rate \u003c- ecb_data(\"EXR\", \"D.USD.EUR.SP00.A\", start_period = \"2021-01-01\")\nfx_rate\n```\n\n```{r plotting, message = FALSE, echo = FALSE, dpi = 300}\nlibrary(ggplot2)\n\ntitle \u003c- tools::toTitleCase(fx_rate[1, \"title\", drop = TRUE])\nsubtitle \u003c- fx_rate[1, \"description\", drop = TRUE]\n\nggplot(fx_rate, aes(x = date, y = value)) +\n  geom_line() +\n  theme_minimal() +\n  theme(\n    plot.title = element_text(face = \"bold\"),\n    panel.grid.major.y = element_line(color = \"black\", linewidth = 0.2),\n    panel.grid.major.x = element_blank(),\n    panel.grid.minor = element_blank(),\n    axis.text = element_text(color = \"black\"),\n    axis.title = element_blank()\n  ) +\n  scale_y_continuous(labels = scales::label_currency()) +\n  labs(title = title, subtitle = subtitle)\n```\n\n## Related work\n* [ecb](https://github.com/expersso/ecb): R interface to the European Central Bank's Statistical Data Warehouse (SDW) API.\n* [rsdmx](https://github.com/opensdmx/rsdmx): R package for reading SDMX data and metadata.\n* [readsdmx](https://github.com/mdequeljoe/readsdmx): R package for reading SDMX data and metadata.\n* [pdfetch](https://github.com/abielr/pdfetch): R package for downloading economic and financial time series from public sources.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-muecke%2Fecbr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-muecke%2Fecbr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-muecke%2Fecbr/lists"}