matrix_df | R Documentation |
An optimised 'matrix' to 'data.frame' constructor.
matrix_df(x, keep.attrs = FALSE)
x |
a matrix. |
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. If the matrix has row names, these are retained by the dataframe.
cloud <- ichimoku(sample_ohlc_data)
mcloud <- as.matrix(cloud)
df <- matrix_df(mcloud)
str(df)
str(rownames(df))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.