repcol function

Repeat each column of a matrix n times

Repeat each column of a matrix n times

This function repeats each column of a matrix n times

repcol(x, n)

Arguments

  • x: is the input matrix
  • n: is the number of repetitions (can be a vector)

Returns

matrix with repeated columns

  • Maintainer: Jan Tilly
  • License: GPL (>= 2)
  • Last published: 2021-05-25