A more flexible and stylish alternative to replicate the behaviour of the repmat function of MATLAB

repmat(a, n, m)

Arguments

a

The matrix to copy

n

The n value for the tiling

m

The m value for the tiling

Value

Creates a large matrix consisting of an m-by-n tiling of copies of a.

References

http://cran.r-project.org/doc/contrib/R-and-octave.txt

Author

Robin Hankin, 2001