Learn R Programming

cocoreg (version 0.1.1)

repmat: Replicate matrix to create a larger one

Description

From: http://haky-functions.blogspot.fi/2006/11/repmat-function-matlab.html (accessed 27.3.2015)

Usage

repmat(X, m, n)

Arguments

X
A [I,J] matrix or J element vector, Matrix used as such, vector coerced to a row matrix with dim(X)=[1,J].
m
[1,1] integer, Replication count vertically
n
[1,1] integer, Replication count horizontally

Value

[m*I,n*J] matrix, Replicated data