repRow: Repeat the rows of a matrix n times.

Description Usage Arguments Value See Also Examples

View source: R/repRow.R

Description

This function replicates the rows of matrix n times.

Usage

1
repRow(x, n)

Arguments

x

the row you want replicated in matrix form.

n

the number of rows you would like in your matrix.

Value

a matrix with x repeated n times.

See Also

repCol

Examples

1
2
a <- c(1,2,3,4,5)
repRow(a, 10)

gtog/dMisc documentation built on May 17, 2019, 8:57 a.m.