zipit {FastUtils}R Documentation

Zip Multiple Vectors or Lists

Description

This function combines multiple vectors or lists element-wise into a list of lists. A slightly lighter weight alternative to itertools::izip()

Usage

zipit(...)

Arguments

...

Vectors or lists to be combined.

Value

A list of lists, where each inner list contains the elements from the corresponding positions in the input vectors or lists.

See Also

enumerateit()

Examples

# Zip two vectors
zipit(c(1, 2, 3), c("a", "b", "c"))
# Zip three vectors
zipit(c(1, 2), c("x", "y"), c(TRUE, FALSE))

[Package FastUtils version 0.1.1 Index]