repColrepRow: Two functions to duplicate rows and columns

Description Usage Arguments Value See Also Examples

Description

These functions allow easy replication of rows and columns

Usage

1
2
3
repRow(x, n)

repCol(x, n)

Arguments

x

row/column to be repeated

n

number of times to be repeated

Value

matrix with x repeated n times

See Also

https://www.r-bloggers.com/a-quick-way-to-do-row-repeat-and-col-repeat-rep-row-rep-col/ and is written by TszKin Julian

Examples

1
## Not run: repRow(x,n)

jholderieath/repColrepRow documentation built on May 19, 2019, 9:27 a.m.