I am trying to create a data frame by combining a data frame with a list. The problem is that each element of the list is not the same length. I read this link: http://www.r-bloggers.com/converting-a-list-to-a-data-frame/ and example four is exactly what I need, but I want to automate the process of naming the rows. I have over 100 rows I need to name and I don't want to name them all explicitly.
example <- list("a", c("b", "c"), c("d", "e", "f"))
should look like this:
row1 | a <NA> <NA>
row2 | b c <NA>
row3 | d e f