powered by
Replicate columns of input matrix n times as neighbors of columns in original matrix.
interleaveMatrixWithItself(x, n = 1)
input matrix
number of interleaves
matrix is output
# NOT RUN { mat<-replicate(100, rnorm(20)) wmat<-interleaveMatrixWithItself( mat , 5 ) # }
Run the code above in your browser using DataLab