irepeat: Create a repeating iterator

Description Usage Arguments Examples

Description

Create an iterator that returns a value a specified number of times.

Usage

1
irepeat(x, times)

Arguments

x

The value to return repeatedly.

times

The number of times to repeat the value. Default value is infinity.

Examples

1
2
# Repeat a value 10 times
unlist(as.list(irepeat(42, 10)))


Search within the itertools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.