repCol: repeat a column when needed to match other matrix dimension

Description Usage Arguments Value References Examples

View source: R/repCol.R

Description

repeat a column when needed to match other matrix dimension

Usage

1
repCol(c, n)

Arguments

c

a vector to be repeated

n

number ot time to repeat the vector

Value

a matrix

References

the original function was found here: https://www.r-bloggers.com/a-quick-way-to-do-row-repeat-and-col-repeat-rep-row-rep-col/

Examples

1
repCol(c(1,2,3), 2)

jwist/visualizeR documentation built on Dec. 1, 2019, 5:11 p.m.