repEach | R Documentation |
Repeat each element x_i in X, n_i times.
repEach(x, n)
x |
Values to be repeated |
n |
Number of repeat for each x_i (same length as x) |
Vector with values from x, n times
repEach(1:3, 1:3) ## 1, 2, 2, 3, 3, 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.