Last data update: 2014.03.03

R: mergeToList
mergeToListR Documentation

mergeToList

Description

Merges k objects (lists or vectors), all being of length L, into a list object of length L, with each list cell being a list of the k elements in L-th position in their respective object.

Usage

mergeToList(...)

Arguments

...

k objects to be merged. Their lengths are checked, and should be all equal.

Value

Merged list as specified above.

Author(s)

Pierrick Bruneau

Examples

temp <- mergeToList(c(1,2), list(3,4), c(5,6))

Results