to_m: Convert time series data to matrix with defined number of...

Description Usage Arguments Value Examples

View source: R/to_m.R

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.

[Superseded]

Usage

1
to_m(x, n_cols)

Arguments

x
  • dataframe with one column

n_cols
  • number of columns in the matrix

Value

Examples

1
2
3
library(magrittr)
library(lazytrade)
macd_m <- seq(1:1000) %>% as.data.frame() %>% to_m(64)

lazytrade documentation built on Dec. 16, 2021, 1:06 a.m.