R version of the matlab function repmat, repeating a by m x n
customRepmat(a, n, m)
a
to be repeated
n
repeater parameter
m
Returns the repeated dataset