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
--- 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
2 matches
Mail list logo