tidy.xts: Convert xts object to tibble

View source: R/tidy.xts.R

tidy.xtsR Documentation

Convert xts object to tibble

Description

Convert xts object to tibble

Usage

## S3 method for class 'xts'
tidy(x, pivot_longer = TRUE, ...)

Arguments

x

An xts object

pivot_longer

If TRUE, pivot columns of x into long format

Value

Returns a tibble. If pivot_longer is TRUE, the columns are index, series, and value, where values of series are taken from the column names of x. Otherwise, the tibble has the columns of x, plus an additional column called index.


pteetor/tutils documentation built on April 25, 2024, 9:14 a.m.