Learn R Programming

EGAD (version 1.0.3)

repmat: 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

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

Run the code above in your browser using DataLab