Learn R Programming

validate (version 1.1.5)

sdmx_codelist: Get code list from an SDMX REST API endpoint.

Description

sdmx_codelist constructs an URL for rsdmx::readSDMX and extracts the code IDs. Code lists are downloaded once and cached for the duration of the R session.

estat_codelist gets a code list from the REST API provided at ec.europa.eu/tools/cspa_services_global/sdmxregistry. It is a convenience wrapper that calls sdmx_codelist.

global_codelist gets a code list from the REST API provided at https://registry.sdmx.org/webservice/data.html. It is a convenience wrapper that calls sdmx_codelist.

Usage

sdmx_codelist(
  endpoint,
  agency_id,
  resource_id,
  version = "latest",
  what = c("id", "all")
)

estat_codelist(resource_id, agency_id = "ESTAT", version = "latest")

global_codelist(resource_id, agency_id = "SDMX", version = "latest")

Arguments

endpoint

[character] REST API endpoint of the SDMX registry

agency_id

[character] Agency ID (e.g. "ESTAT")

resource_id

[character] Resource ID (e.g. "CL_ACTIVITY")

version

[character] Version of the code list.

what

[character] Return a character with code id's, or a data frame with all information.

See Also

Other sdmx: sdmx_endpoint(), validator_from_dsd()

Other sdmx: sdmx_endpoint(), validator_from_dsd()