Learn R Programming

Jmisc (version 0.3.1.1)

repRow: Repeat a vector by row

Description

Repeat a vector by row

Usage

repRow(x, n)

Arguments

x

vector or matrix

n

number of replication

See Also

repCol

Examples

Run this code
# NOT RUN {
repRow(c(a=1,b=2,c=3),5)
repCol(c(a=1,b=2,c=3),5)
# }

Run the code above in your browser using DataLab