labels: communicates with rejustify/getTableLabels API endpoint

Description Usage Arguments Value Examples

View source: R/labels.R

Description

The function returns the list of available labels for data set table delivered by provider. If not specified otherwise by dim, the labels are returned for all dimensions. For the list of available provider/tables you can refer to rejustify.com/repos.

Usage

1
2
3
4
5
6
labels(
  provider = NULL,
  table = NULL,
  dim = NULL,
  url = getOption("rejustify.mainUrl")
)

Arguments

provider

Relevant provider (required).

table

Relevant provider (required).

dim

Relevant dimension from provider/table (optional).

url

API url. By default read from global variables.

Value

list containing the pairs of value code and label

Examples

1
2
3
4
#API setup
setCurl()
labels('IMF','WEO')
labels('IMF','WEO','WEO Country')

rejustify/r-package documentation built on Nov. 7, 2021, 2:10 p.m.