fetch_index: Fetches index series from DataHub

Description Usage Arguments Value Examples

View source: R/index.R

Description

Fetches index series from DataHub

Usage

1
fetch_index(code, source_code, query = list())

Arguments

code

the code of the index series

source_code

the source code of the index series

query

optional, availible list(from = yyyy-mm-dd, to = yyyy-mm-dd, bridge = 'linear' or 'last')

Value

dataframe

code

index series code

source_code

source code

date

series date

value

value of the series

Examples

1
2
3
fetch_index('NEY', 'HS')
fetch_index('LHA', 'AL', query = list(to = '2019-02-01'))
fetch_index('VIVH-F', 'THI', query = list(from = '2019-01-01', bridge = 'linear'))

palmargisla/datahub-r documentation built on Sept. 18, 2019, 9:50 p.m.