repmat: Replicate and tile an array

Description Usage Arguments Examples

View source: R/repmat.R

Description

Repeat copies of array (equivalent of the repmat matlab function).

Usage

1
repmat(a, n, m)

Arguments

a

input array (scalar, vector, matrix).

n

number of time to repeat input array in row and column dimensions.

m

repetition factor.

Examples

1
repmat(10,3,2)

Example output

     [,1] [,2]
[1,]   10   10
[2,]   10   10
[3,]   10   10

rwavelet documentation built on Jan. 13, 2021, 10:38 a.m.