Hi: It's not at all clear to me what you want to do. Is each component of your list a data frame with the same structure? Are you trying to combine them into one data frame? If so, then try
mydata <- do.call(rbind, c) where c is the name of the list. (Not a good choice of name, by the way - c() is a very common function in R and it's not wise to assign another object to that name.) If you want to do something else, perhaps you could clarify your intentions for the list. HTH, Dennis On Wed, Jun 29, 2011 at 1:04 PM, Breno Fragomeni <bre...@gmail.com> wrote: > Hi > I have imported some files to a list, called "importa". > There are 43 files (importa[1], importa[2], ..., importa[43]). Now, I'm > trying to create a new table in "r". Each table will got the data from the > importa partition. Like file1<-importa[1]. > I tried two ways: > c<-list() > for (i in 1:43) { > c[i]=paste("prova",a[i],sep="")} > i <- 1 > for (j in c) > { > j<-importa[i] > i <- i + 1 > } > In this one, the program created only one table, called "j" with the data of > the importa[43]. > > The second trial: > c<-list() > for (i in 1:43) { > c[i]=paste("prova",a[i],sep="")} > > i <- 1 > a<-list() > for (j in c) > { > a[j]<-importa[i] > i <- i + 1 > } > In this one the program created another list, with the subdivisions just > like the "importa". > > Anyone knows what I got to do? > Thank you very much > > -- > Breno Fragomeni > Mestrando em Genética e Melhoramento Animal - Escola de Veterinária - UFMG > Genetics and Animal Breeding Master's Degree Student - UFMG > > [[alternative HTML version deleted]] > > > ______________________________________________ > 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. > > ______________________________________________ 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.