as.data.frame.ichimoku | R Documentation |
An optimised 'ichimoku' to 'data.frame' constructor.
## S3 method for class 'ichimoku'
as.data.frame(x, row.names, optional, keep.attrs = FALSE, ...)
x |
an object of class ‘ichimoku’. |
row.names |
not used. |
optional |
not used. |
keep.attrs |
[default FALSE] if set to TRUE, will preserve any custom attributes set on the original object. |
... |
arguments passed to or from other methods. |
This function is an S3 method for the generic function as.data.frame() for class ‘ichimoku’. It can be invoked by calling as.data.frame(x) on an object ‘x’ of class ‘ichimoku’.
A ‘data.frame’ object. The ichimoku object index is preserved as the first column with header ‘index’.
cloud <- ichimoku(sample_ohlc_data)
df <- as.data.frame(cloud)
str(df)
df2 <- as.data.frame(cloud, keep.attrs = TRUE)
str(df2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.