Skip to content
Prev 139430 / 398506 Next

Splitting a set of vectors in a list

If I understand correctly, try this:

as.data.frame(lapply(mylist, `[`, 1:max(unlist(lapply(mylist, length)))))
On 13/03/2008, John Kane <jrkrideau at yahoo.ca> wrote: