Re: [R] Converting list with different vector lengths into a dataframe (or export it as .csv)

2014-01-08 Thread Olivereta
It worked, thank you very much indeed :) Kind regards -- View this message in context: http://r.789695.n4.nabble.com/Converting-list-with-different-vector-lengths-into-a-dataframe-or-export-it-as-csv-tp4683259p4683269.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] Converting list with different vector lengths into a dataframe (or export it as .csv)

2014-01-08 Thread Olivereta
Thanks a lot for your answer. What I really want is a data.frame like this (I am just building it myself): years [1] [2] [3][4] [1] 2004 2007 NANA [2] 2010 2005 NANA [3] 2009 2001 NANA [4] 2006 2000 2004 2009 [5]2006

[R] Converting list with different vector lengths into a dataframe (or export it as .csv)

2014-01-08 Thread Olivereta
Dear all, I have this list years <- list(c("2004", "2007"), c("2010", "2005"), c("2009", "2001"), c("2006", "2000", "2004", "2009"), c("2006", "2000"), c("2006", "2000"), c("2005", "2007"), c("2005", "2007"), c("2001", "2006"), c("2005", "2001", "2008"), c("2005", "2001", "2008"),