This function repeats each row of a matrix n times
reprow(x, n)
x
is the input matrix
n
is the number of repetitions (can be a vector)
matrix with repeated rows