powered by
Repeat each element x_i in X, n_i times.
repEach(x, n)
Values to be repeated
Number of repeat for each x_i (same length as x)
Vector with values from x, n times
# NOT RUN { repEach(1:3, 1:3) ## 1, 2, 2, 3, 3, 3 # }
Run the code above in your browser using DataLab