xts_to_tibble: Convert an xts object to a tibble data frame

View source: R/xts_to_tibble.R

xts_to_tibbleR Documentation

Convert an xts object to a tibble data frame

Description

Convert an xts object to a tibble data frame

Usage

xts_to_tibble(x)

Arguments

x

an xts object

Value

A tibble data frame with first column 'date'

Note

If this function is used outside of the package's functions, i.e. using other data than FRED's, then make sure that the tibble does not contain non-numeric columns. An xts object is a matrix with an index attribute (date) and one cannot mix types in a matrix.


treasuryTR documentation built on April 3, 2023, 5:39 p.m.