
Last chance! 50% off unlimited learning
Sale ends in
rdb_series
downloads the list of series for
available datasets of a selection of providers from
DBnomics.
/!\ We warn the user that this function can be (very) long to execute. We remind
that DBnomics requests data from 63 providers to retrieve 21675 datasets for
a total of approximately 720 millions series.
rdb_series(
provider_code = NULL,
dataset_code = NULL,
dimensions = NULL,
query = NULL,
use_readLines = getOption("rdbnomics.use_readLines"),
curl_config = getOption("rdbnomics.curl_config"),
simplify = FALSE,
verbose = FALSE,
...
)
Character string (default NULL
). DBnomics code
of one or multiple providers. If NULL
, the providers are firstly
dowloaded with the function rdb_providers
and then the
datasets are requested.
Character string (default NULL
). DBnomics code
of one or multiple datasets of a provider. If NULL
, the datasets
codes are dowloaded with the function rdb_datasets
and then
the series are requested.
List or character string (single quoted) (default NULL
).
DBnomics code of one or several dimensions in the specified provider and dataset.
If it is a named list, then the function toJSON
(from the
package jsonlite) is applied to generate the json object.
Character string (default NULL
). A query to
filter/select series from a provider's dataset.
Logical (default FALSE
). If TRUE
, then
the data are requested and read with the base function readLines
i.e.
through the default R internet connection. This can be used to get round the
error Could not resolve host: api.db.nomics.world
.
Named list (default NULL
). If not
NULL
, it is used to configure a proxy connection. This
configuration is passed to the function curl_fetch_memory
of the package
curl. A temporary curl_handle
object is created internally
with arguments equal to the provided list in curl_config
.
For curl_fetch_memory
arguments see curl_fetch
.
For available curl options see curl_options
,
names(curl_options())
and
libcurl.
Logical (default FALSE
). If TRUE
, when the
series are requested for only one provider and one dataset then a
data.table
is returned, not a nested named list of
data.table
s.
Logical (default FALSE
). Show number of series per
datasets and providers.
Additionals arguments.
A nested named list of data.table
s or a data.table
.
By default, the function returns a nested named list of data.table
s
containing the series of datasets for providers from
DBnomics.
rdb_providers
, rdb_last_updates
,
rdb_datasets
, rdb_dimensions
# NOT RUN {
rdb_series(provider_code = "IMF", dataset_code = "WEO:2019-10")
## With dimensions
rdb_series("IMF", "WEO:2019-10", dimensions = list(`weo-country` = "AGO"))
rdb_series("IMF", "WEO:2019-10", dimensions = list(`weo-subject` = "NGDP_RPCH"), simplify = TRUE)
## With query
rdb_series("IMF", "WEO:2019-10", query = "ARE")
rdb_series("IMF", c("WEO:2019-10", "WEOAGG:2019-10"), query = "NGDP_RPCH")
rdb_series(provider_code = "IMF", verbose = TRUE)
options(rdbnomics.progress_bar_series = TRUE)
rdb_series(provider_code = "IMF", dataset_code = "WEO:2019-10")
options(rdbnomics.progress_bar_series = FALSE)
rdb_series(
provider_code = "IMF", dataset_code = "WEO:2019-10",
use_readLines = TRUE
)
rdb_series(
provider_code = "IMF", dataset_code = "WEO:2019-10",
curl_config = list(proxy = "<proxy>", proxyport = <port>)
)
# }
Run the code above in your browser using DataLab