Re: [R] RES: Question about converting list items in matrix

2011-07-21 Thread Vickie S
Hi Filipe and David, Thanks both of you for the suggestion. It works perfect. best, - Vickie Subject: RES: [R] Question about converting list items in matrix Date: Wed, 20 Jul 2011 18:39:45 -0300 From: filipe.bote...@vpar.com.br To: is...@live.com; r-help@r-project.org "This message and its

[R] RES: Question about converting list items in matrix

2011-07-20 Thread Filipe Leme Botelho
--- Begin Message --- Vickie, try something like this # Dummy data lst <- list("This",c("should", "work", "just"),"fine","I","guess...",c(NA,NA)) names(lst) <- letters[seq(1,length(lst))] lst # Arranging for (i in 1:length(lst)) { lst[[i]] <- as.matrix(lst[[i]]) rownames(lst[[i]]) <- rep(nam