Rdocumentation
powered by
Learn R Programming
StatMethRank (version 1.3)
repmat: Replicate and tile array
Description
Just the same usage as repmat function in Matlab. This kind of functions can be easily found on the web.
Usage
repmat(A, M, N)
Arguments
A
Matrix or vector to repeat.
M
Number of row repititions.
N
Number of column repititions.
Value
a matrix of M-by-N tiling of A.
Examples
Run this code
repmat(
c
(
1
,
2
),
6
,
8
)
Run the code above in your browser using
DataLab