Learn R Programming

datautils (version 0.1.5)

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.

Examples

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

Run the code above in your browser using DataLab