rdb_to_xts {rdbnomics} | R Documentation |
Transform the data.table object into a xts object
Description
For some analysis, it is more convenient to have a xts
object
instead of a data.table
object.
Usage
rdb_to_xts(
x,
needed_columns = c("period", "series_code", "series_name", "value"),
series_columns = c("series_code", "series_name")
)
Arguments
x |
|
needed_columns |
Vector of character strings (default
|
series_columns |
Vector of character strings (default
|
Value
A xts
object.
Author(s)
Sebastien Galais
See Also
Examples
## Not run:
library(xts)
library(data.table)
library(rdbnomics)
df <- rdb("IMF", "BOP", mask = "A.FR+ES.BCA_BP6_EUR")
rdb_to_xts(df)
## End(Not run)
[Package rdbnomics version 0.6.4 Index]