to_m | R Documentation |
Transforms Time Series Column of the dataframe to the matrix with specified number of columns. Number of rows will be automatically found. Eventually not complete last row will be discarded.
to_m(x, n_cols)
x |
|
n_cols |
|
matrix with specified amount of rows
library(magrittr)
library(lazytrade)
macd_m <- seq(1:1000) %>% as.data.frame() %>% to_m(64)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.