Learn R Programming

ANTsR (version 1.0)

interleaveMatrixWithItself: Simple interleaveMatrixWithItself function.

Description

Replicate columns of input matrix n times as neighbors of columns in original matrix.

Usage

imat<-interleaveMatrixWithItself( mat , 5 )

Arguments

mat

input matrix

Value

matrix is output

Examples

Run this code
# NOT RUN {
mat<-replicate(100, rnorm(20)) 
wmat<-interleaveMatrixWithItself( mat , 5 ) 
# }

Run the code above in your browser using DataLab