powered by
This function combines multiple vectors or lists element-wise into a list of lists. It's a slightly lighter weight alternative to itertools::izip()
itertools::izip()
zipit(...)
A list of lists, where each inner list contains the elements from the corresponding positions in the input vectors or lists.
Vectors or lists to be combined.
enumerateit()
# 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))
Run the code above in your browser using DataLab