zipLists: Combination of Lists

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/listOperations.R

Description

Makes a list of length n lists, each length n list containing elements of the n input lists occuring at the same position.

Usage

1

Arguments

...

lists.

Details

If any elements of ... are too short, their elements are recycled to the length of the longest, unless any have length zero.

Value

A list of length n lists, each length n list containing elements of the n input lists occuring at the same position. This list is as long as the longest element from ....

Author(s)

Antoine Filipovic Pierucci

See Also

mapply.

Examples

1
2
3
4
5
l1 <- list(a = 1:3, b = 4:5)
l2 <- list(x = letters[1:2], y = letters[5:7])
l3 <- list(1)

zipLists(l1, l2, l3)

rmngb documentation built on May 29, 2017, 9:22 p.m.

Related to zipLists in rmngb...