Learn R Programming

matchingR (version 2.0.0)

reprow: Repeat each row of a matrix n times

Description

This function repeats each row of a matrix n times

Usage

reprow(x, n)

Value

matrix with repeated rows

Arguments

x

is the input matrix

n

is the number of repetitions (can be a vector)