bb_data {bbk} | R Documentation |
Returns data for a given flow and key
Description
Returns data for a given flow and key
Usage
bb_data(
flow,
key,
start_period = NULL,
end_period = NULL,
first_n = NULL,
last_n = NULL
)
Arguments
flow |
|
key |
|
start_period |
|
end_period |
|
first_n |
|
last_n |
|
Value
A data.frame()
with the requested data. The columns are:
date |
The date of the observation |
value |
The value of the observation |
key |
The time series key |
title |
The title of the dataflow |
frequency |
The frequency of the observation |
category |
The category of the observation |
unit |
The unit of the observation |
unit_multiplier |
The unit multiplier of the observation |
References
See Also
Other data:
bb_series()
Examples
# fetch all data for a given flow and key
bb_data("BBSIS", "D.I.ZAR.ZI.EUR.S1311.B.A604.R10XX.R.A.A._Z._Z.A")
# specified period (start date-end date) for daily data
bb_data(
"BBSIS", "D.I.ZAR.ZI.EUR.S1311.B.A604.R10XX.R.A.A._Z._Z.A",
start_period = "2020-01-01",
end_period = "2020-08-01"
)
# or only specify the start date
bb_data(
"BBSIS", "D.I.ZAR.ZI.EUR.S1311.B.A604.R10XX.R.A.A._Z._Z.A",
start_period = "2020-01-01"
)