repCol: Form a matrix based on repeating a column x, n times.

Description Usage Arguments Value See Also Examples

View source: R/repCol.R

Description

This function replicates the column x, n times and returns a matrix.

Usage

1
repCol(x, n)

Arguments

x

the column you want replicated in matrix form.

n

the number of columns you would like in your matrix.

Value

a matrix with column x repeated n times.

See Also

repRow

Examples

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

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