reprow function

Repeat each row of a matrix n times

Repeat each row of a matrix n times

This function repeats each row of a matrix n times

reprow(x, n)

Arguments

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

Returns

matrix with repeated rows

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