xts_tbl {tbl2xts} | R Documentation |
This function converts data from a xts object to a tbl_df(). Note that the dataframe must be of type xts and ordered by a date column. This date column will be preserved and save as "date".
xts_tbl(xts)
xts |
A xts series that will be converted to a tbl_df(). |
A tbl_df() with the first column the "date" column used to order the xts series by.
## Not run: library(dplyr) data(TRI) df_xts_tbl <- TRI %>% tbl_xts(., cols_to_xts = "TRI", spread_by = "Country") %>% xts_tbl() ## End(Not run)