On Oct 17, 2011, at 5:11 PM, xhan wrote:
Hi,
I have a list of lists that I would like to convert into a dataframe
such
that the name(?) of the individual lists is replicated as rows with
each
item in the list listed in another column.
I have provided a partial from my list: (let's say th
In the absence of a reproducible example (your example is not
reproducible as is), try this:
names(help.me) <- as.character(2:4)
library('plyr')
newDF <- ldply(help.me, rbind)
newDF[['.id']] <- as.numeric(newDF[['.id']])
ldply will create a new column named .id that contains the name of the
list
Hi,
I have a list of lists that I would like to convert into a dataframe such
that the name(?) of the individual lists is replicated as rows with each
item in the list listed in another column.
I have provided a partial from my list: (let's say the list is called
"help.me")
[[2]]
[1] 18 27 11
3 matches
Mail list logo