Reduce list to a matrix or data.frame with names as new columns
Source:R/List2Matrix.R
List2Matrix.RdThis function is used by summary.prodlim to deal with results.
Author
Thomas A. Gerds <[email protected]>
Examples
x=list(a=data.frame(u=1,b=2,c=3),b=data.frame(u=3,b=4,c=6))
List2Matrix(x,depth=1,"X")
#> X u b c
#> 1 a 1 2 3
#> 2 b 3 4 6