powered by
Create an iterator that returns a value a specified number of times.
i_repeat(x, times)
an iteror.
The value to return repeatedly.
The number of times to repeat the value. Default value is infinity.
Originally from the itertools package.
itertools
# Repeat a value 10 times unlist(as.list(i_repeat(42, 10)))
Run the code above in your browser using DataLab