Package: itertools2 0.1.3

itertools2: Iterators for efficient looping

A port of Python's excellent itertools module to R for efficient looping.

Authors:John A. Ramey <[email protected]>, Kayla Schaefer <[email protected]>

itertools2_0.1.3.tar.gz
itertools2_0.1.3.zip(r-4.5)itertools2_0.1.3.zip(r-4.4)itertools2_0.1.3.zip(r-4.3)
itertools2_0.1.3.tgz(r-4.4-any)itertools2_0.1.3.tgz(r-4.3-any)
itertools2_0.1.3.tar.gz(r-4.5-noble)itertools2_0.1.3.tar.gz(r-4.4-noble)
itertools2_0.1.3.tgz(r-4.4-emscripten)itertools2_0.1.3.tgz(r-4.3-emscripten)
itertools2.pdf |itertools2.html
itertools2/json (API)
NEWS

# Install 'itertools2' in R:
install.packages('itertools2', repos = c('https://ramhiser.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/ramhiser/itertools2/issues

On CRAN:

itertools

5.10 score 12 stars 2 packages 35 scripts 362 downloads 41 exports 1 dependencies

Last updated 9 years agofrom:471515f4e8. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 17 2024
R-4.5-winOKNov 17 2024
R-4.5-linuxOKNov 17 2024
R-4.4-winOKNov 17 2024
R-4.4-macOKNov 17 2024
R-4.3-winOKNov 17 2024
R-4.3-macOKNov 17 2024

Exports:consumedotproductichainichunkicombinationsicompressicounticycleidropwhileienumienumerateifilterifilterfalseilengthimapipadipairwiseipermutationsiproductirepirep_lenirepeatiroundrobiniseqiseq_alongiseq_lenisliceistaristarmapitabulateitakewhileiteeiter_deepcopyitripletwiseiuniqueiunique_justseenizipizip_longestnthquantifytake

Dependencies:iterators

Readme and manuals

Help Manual

Help pageTopics
Consumes the first n elements of an iteratorconsume
Computes the dot product of two iterable objectsdotproduct
Iterator that chains multiple arguments together into a single iteratorichain
Iterator that returns elements in fixed-length chunksichunk
Iterator that generates all combinations of a vector taken m at a time.icombinations
Iterator that filters elements where corresponding selector is false.icompress
Iterator of numeric sequence with initial value and step sizeicount
Iterator that cycles indefinitely through an iterable objecticycle
Iterator that drops elements until the predicate function returns FALSEidropwhile
Iterator that returns the elements of an object along with their indicesienum ienumerate
Iterator that filters elements not satisfying a predicate functionifilter ifilterfalse
Consumes an iterator and computes its lengthilength
Iterator that applies a given function to several iterables concurrently.imap
Iterator that returns an object followed indefinitely by a fill valueipad
Iterator that returns elements of an object in pairsipairwise
Iterator that generates all permutations of an iterable object.ipermutations
Iterator that returns the Cartesian product of the arguments.iproduct
Iterator that replicates elements of an iterable objectirep irep_len
Iterator that returns an object indefinitelyirepeat
Iterator that traverses each given iterable in a roundrobin orderiroundrobin
Helper function that determines whether is an iterator objectis_iterator
Iterators for sequence generationiseq iseq_along iseq_len
Iterator that returns selected elements from an iterable.islice
Iterator that applies a given function to the elements of an iterable.istar istarmap
Iterator that maps a function to a sequence of numeric valuesitabulate
Iterator that returns elements while a predicate function returns TRUEitakewhile
Returns a list of n independent iterators from a single iterable objectitee
Performs a deep copy of an iteratoriter_deepcopy
Helper function that determines the length of an iterator objectiter_length
itertools2: Functions creating iterators for efficient loopingitertools2-package itertools2 package-itertools2
Iterator that returns elements of an object in tripletsitripletwise
Iterator that extracts the unique elements from an iterable objectiunique
Iterator that extracts the just-seen unique elements from an iterable objectiunique_justseen
Iterator that iterates through several iterables concurrently.izip
Iterator that iterates through several iterables concurrently.izip_longest
Returns the nth item of an iteratornth
Count the number of times an iterable object is TRUEquantify
Helper function that determines whether an object inherits from a StopIteration exceptionstop_iteration
Return the first n elements of an iterable object as a listtake
Calls iterators::nextElem(). If error, returns default value.try_nextElem