repmat: Replicate matrix to create a larger one

Description Usage Arguments Value

View source: R/common_tools.R

Description

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

Usage

1
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


bwrc/cocoreg-r documentation built on June 4, 2017, 8:41 a.m.