repmat {EGAD} | R Documentation

## Rep function for matrices

### Description

The function generates a matrix by binding the columns and rows

### Usage

    repmat(X, m, n)

### Arguments

`X` | numeric matrix
`m` | numeric value, repeat rows m times
`n` | numeric value, repeat columns n times

### Value

list of genes and the expression matrix

### Examples

    genes.labels <- matrix( sample( c(0,1), 1000, replace=TRUE), nrow=100)
    expand <- repmat( genes.labels, 1,2)

[Package EGAD version 1.10.0 Index]