xts_df | R Documentation |
An optimised 'xts' to 'data.frame' constructor.
xts_df(x, keep.attrs = FALSE)
x |
an ‘xts’ object. |
keep.attrs |
[default FALSE] if set to TRUE, will preserve any custom attributes set on the original object. |
The optimised data.frame constructors are used internally within the package and made available as utilities. Please note that no data validation or checking is performed.
A ‘data.frame’ object. The ‘xts’ index is preserved as the first column with header ‘index’.
cloud <- ichimoku(sample_ohlc_data)
df <- xts_df(cloud)
str(df)
df2 <- xts_df(cloud, keep.attrs = TRUE)
str(df2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.