Learn R Programming

irtoys (version 0.1.5)

l2m: Transform a list of lists... to a matrix

Description

When using lapply or sapply to avoid explicit loops, one often ends up with complex structures represening lists of lists of lists... Function l2m tries to transform such a structure into a matrix with a column for each distinct name in the list.

Usage

l2m(x)

Arguments

x
A list of lists...

Value

  • A matrix with a column for each distinct name in the list