zipit | R Documentation |
This function combines multiple vectors or lists element-wise into
a list of lists. It's a slightly lighter weight alternative to
itertools::izip()
zipit(...)
... |
Vectors or lists to be combined. |
A list of lists, where each inner list contains the elements from the corresponding positions in the input vectors or lists.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.