# rdbnomics 

[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/rdbnomics)](https://cran.r-project.org/package=rdbnomics)
[![](http://cranlogs.r-pkg.org/badges/grand-total/rdbnomics)](https://cran.r-project.org/package=rdbnomics)
[![pipeline status](https://git.nomics.world/dbnomics/rdbnomics/badges/master/pipeline.svg)](https://git.nomics.world/dbnomics/rdbnomics/commits/master)
[![status](https://tinyverse.netlify.com/badge/rdbnomics)](https://CRAN.R-project.org/package=rdbnomics)

## DBnomics R client

This package provides you access to DBnomics data series. DBnomics is an open-source project with the goal of aggregating the world's economic data in one location, free of charge to the public. DBnomics covers hundreds of millions of series from international and national institutions (Eurostat, World Bank, IMF, ECB, ...).

To use this package, you have to provide the codes of the provider, dataset and series you want. You can retrieve them directly on the website (https://db.nomics.world/). You have access to the API through this link (http://api.db.nomics.world/) and the documentation is here (https://api.db.nomics.world/v22/apidocs).

DBnomics is hosted on its own gitlab platform (https://git.nomics.world/). However, in order to install the package more easily, we created a mirror of this package on github (https://github.com/dbnomics/rdbnomics).

To install `rdbnomics` from CRAN:

```r
install.packages("rdbnomics")
library(rdbnomics)
```

To install `rdbnomics` from github:

```r
remotes::install_github("dbnomics/rdbnomics", build_vignettes = TRUE, force = TRUE)
library(rdbnomics)
```

After installation, a vignette is available to the user with:

* many examples,
* how to configure a proxy,
* how to use default R internet connection,
* transform time series with filters,
* ...

Just follow the link rdbnomics (https://CRAN.R-project.org/package=rdbnomics/vignettes/rdbnomics.html) or run:
```r
vignette("rdbnomics")
```
A lot of examples are available in the functions' documentations:
```r
?rdb
?rdb_datasets
?rdb_dimensions
?rdb_series
?rdb_providers
?rdb_last_updates
?rdb_to_xts
?rdb_rename_xts
```

## P.S.
Visit https://db.nomics.world/ !
