hi,

steps taken :

files<-lapply(list.files(),read.csv,header=T)
 numberOfFiles<-length(list.files())
good<-lapply(files,complete.cases)
cleanDataSets<-list()

for (i in 1:numberOfFiles){
    cleanDataSets[i]=files[[i]][good[[i]],]
  }

with this loop for some reason i get only the first column from each data
frame from the list


if want to retrieve the only one data frame from the list i can do like
this:

files<-lapply(list.files(),read.csv,header=T)
good<-complete.cases(files[[1]])
files[[1]][good,]

thanks in advance
Dimitris

        [[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.

Reply via email to