Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

repcol

Repeat each column of a matrix n times


Description

This function repeats each column of a matrix n times

Usage

repcol(x, n)

Arguments

x

is the input matrix

n

is the number of repetitions (can be a vector)

Value

matrix with repeated columns


matchingR

Matching Algorithms in R and C++

v1.3.2
GPL (>= 2)
Authors
Jan Tilly, Nick Janetos
Initial release
2020-12-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.