Learn R Programming

rsdmx (version 0.5-1)

SDMXServiceProvider: Class "SDMXServiceProvider"

Description

A basic class to handle a SDMX service provider

Usage

SDMXServiceProvider(agencyId, name, scale, country, builder)

Arguments

agencyId
an object of class "character" giving the a provider identifier
name
an object of class "character" giving the name of the provider
scale
an object of class "character" giving the scale of the datasource, either "international" or "national". Default value is "international".
country
an object of class "character" giving the ISO 3-alpha code of the country (if scale is "national"). Default value is NA
builder
an object of class "SDMXRequestBuilder" that will performs the web request building for this specific provider

Value

  • an object of class "SDMXServiceProvider"

Examples

Run this code
#let's create a SDMXRESTRequestBuilder
  #(assuming that "My Organization" implements SDMX REST web-services)
  myBuilder <- SDMXRESTRequestBuilder(regUrl = "http://www.myorg.org/registry",
                                      repoUrl = "http://www.myorg.org/repository",
                                      compliant = TRUE)

  #create a SDMXServiceProvider
  provider <- SDMXServiceProvider(agencyId = "MYORG", name = "My Organization",
                                  builder = myBuilder)

Run the code above in your browser using DataLab