Learn R Programming

matchingR (version 2.0.0)

repcol: Repeat each column of a matrix n times

Description

This function repeats each column of a matrix n times

Usage

repcol(x, n)

Value

matrix with repeated columns

Arguments

x

is the input matrix

n

is the number of repetitions (can be a vector)