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 NA NA [2] 2010 2005 NA NA [3] 2009 2001 NA NA [4] 2006 2000 2004 2009 [5]2006 2000 NA NA etc Thank you very much, and apologies for not being clear enough. -- 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-tp4683259p4683266.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.