powered by
Repeat matrix object respectively to its shape and orientation
crep(x, times)rrep(x, times)
rrep(x, times)
matrix
number of repetitions
crep = columnwise repetition
rrep = rowwise repetition
# NOT RUN { # Columnwise repetition crep(v(1:3), 4) crep(t(v(1:5)), 4) # Rowwise repetition rrep(v(1:3), 4) rrep(t(v(1:5)), 4) # }
Run the code above in your browser using DataLab