enumerate: Create an enumeration object

Description Usage Arguments Examples

View source: R/enumerate.R

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)))


itertools documentation built on May 21, 2017, 3:52 a.m.
Search within the itertools package
Search all R packages, documentation and source code

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

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

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