tidy.xts | R Documentation |
Convert xts object to tibble
## S3 method for class 'xts'
tidy(x, pivot_longer = TRUE, ...)
x |
An xts object |
pivot_longer |
If TRUE, pivot columns of |
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.