to_m {lazytrade} | R Documentation |
Convert time series data to matrix with defined number of columns
Description
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.
Usage
to_m(x, n_cols)
Arguments
x |
|
n_cols |
|
Value
matrix with specified amount of rows
Examples
library(magrittr)
library(lazytrade)
macd_m <- seq(1:1000) %>% as.data.frame() %>% to_m(64)
[Package lazytrade version 0.5.4 Index]