Description Usage Arguments Value Examples
Fetches commodity dataseries from DataHub
1 | fetch_commodity(code, source_code, query = list())
|
code |
the code of the commodity |
source_code |
the source code of the commodity |
query |
optional, availible list(from = yyyy-mm-dd, to = yyyy-mm-dd, bridge = 'linear' or 'last') |
dataframe
commodity code
source code
series date
value of the series
unit of the value
1 2 | fetch_commodity('BRENT', 'EIA')
fetch_commodity('WTI', 'EIA', query = list(from = '2019-01-01', bridge = 'last'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.