knoema.get: knoematest package! This package works with datasets from...

Description Usage Arguments Examples

View source: R/knoematest.R

Description

knoematest package! This package works with datasets from knoema.com

Usage

1
knoema.get(datasetId, selection, type = "ts", client = ApiClient())

Arguments

datasetId

is Dataset's ID specified as a string

selection

is list where all the dimensions of the dataset are listed and a selection from them

type

is optional. By default equal "ts". Other supported variants are "xts" and "zoo"

client

is optional. By default use public user for knoema.com By default the package allows you to work only with public datasets from the site knoema.com. If you want work with private datasets or from other hosts, you need create ApiClient client = ApiClient("host","some_app_id","some_app_secret") and then use this client in funcion knoema.get You can get parameters app_id and app_secret after registering on the site knoema.com, in the section "My profile - Apps - create new" (or use existing applications)

Examples

1
2
3
knoema.get('IMFWEO2017Apr',list(country="512;914",subject ="NGDP_RPCH"))
knoema.get('IMFWEO2017Apr',list(country="512;914",subject ="NGDP_RPCH"),type="xts")
knoema.get('IMFWEO2017Apr',list(country="512;914",subject ="NGDP_RPCH"),type="zoo", client)

ketiketi2507/knoematest documentation built on May 3, 2019, 3 p.m.