Create an enumeration object

Description

Create an iterator that iterates over an iterable, returning the value in a list that includes an index.

Usage

1
enumerate(iterable)

Arguments

iterable

Iterable to iterate over.

Examples

1
2
# Create an enumeration of five random numbers
as.list(enumerate(rnorm(5)))

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.