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