R/xts_to_tbl.R

Defines functions xts_to_tbl

xts_to_tbl <- function(xts) {
  ind <- xts::ind

  tibble::add_column(as_tibble(xts),
                     index = index(xts), before = 1)
}
Patrick01/ptrick documentation built on Feb. 12, 2022, 11:19 p.m.