repRow: repeat a row when needed to match other matrix dimension

Description Usage Arguments Value References Examples

View source: R/repRow.R

Description

repeat a row when needed to match other matrix dimension

Usage

1
repRow(v, n)

Arguments

v

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
repRow(c(1,2,3), 2)

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