repmat: Rep function for matrices

Description Usage Arguments Value Examples

View source: R/repmat.R

Description

The function generates a matrix by binding the columns and rows

Usage

1
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

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

sarbal/EGAD documentation built on May 5, 2021, 5:10 p.m.