Create an iterator version of the rep
function.
1  irep(iterable, times, length.out, each)

iterable 
The iterable to iterate over repeatedly. 
times 
A vector giving the number of times to repeat each element
if the length is greater than one, or to repeat all the elements if the
length is one. This behavior is less strict than 
length.out 
nonnegative integer. The desired length of the output iterator. 
each 
nonnegative integer. Each element of the iterable is repeated

rep
1 2 3 4 5 6 7 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.