Re: [R] Combine list element by column name to make a dataframe

2015-04-06 Thread Duncan Mackay
forgot to cc to list have a look at https://stat.ethz.ch/pipermail/r-help/2012-January/300275.html and other messages in the sequence if you use Marc Schwartz's list2df you with have to transpose it with t() Duncan Duncan Mackay Department of Agronomy and Soil Science University of New Englan

Re: [R] Combine list element by column name to make a dataframe

2015-04-06 Thread Michael Hannon
Maybe something like the appended? -- Mike lst <- list(setNames(c(1,10,50,60,70,80), c("id","id1","math","phy","che","bio")), setNames(c(2,20,45), c("id","id1","phy")), setNames(c(3,30,75), c("id","id1","bio"))

Re: [R] Combine list element by column name to make a dataframe

2015-04-06 Thread peter dalgaard
> On 06 Apr 2015, at 08:05 , Mohammad Tanvir Ahamed via R-help > wrote: > > Hi ,� > > I have a example list like follow� > > > > > lst<-list(setNames(c(1,10,50,60,70,80),c("id","id1","math","phy","che","bio")),setNames(c(2,20,45),c("id","id1","ph