Hi Mohamed, It works. Thank you very much. Best, Robert
2010/11/20 <mohamed.laj...@inserm.fr>: > Hi Robert, > > Try to do this > > Len <- max(sapply(my.list, length)) > > fun1 <- lapply(my.list, function(x){ > c(x, rep(0, Len))[1:Len] > }) > do.call(rbind, fun1) > > M > Regards ______________________________________________ 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.