[R] reading files from two folders

uday uday_143_4u at hotmail.com
Wed Mar 28 10:46:25 CEST 2012

Hi   Hth -- Gerrit , 
thanks for reply 
sorry it was typo mistake , but I corrected that problem before . But the
error is still same.
file_was <- list.files(path = ".", pattern = "v2.0.2.was", all.files = 
 FALSE, full.names = FALSE, recursive = FALSE, ignore.case = FALSE) 
 file_wasaux2 <-list.files(path,pattern="v2.0.2.wasaux2") 

files<- 1
 for ( i in files){
     data1  <- read.table(file_was[i],header=TRUE)
     data2  <- read.table(paste(path, file_wasaux2[i],header=TRUE))
     data   <- cbind (data1,data2)


View this message in context: http://r.789695.n4.nabble.com/reading-files-from-two-folders-tp4511493p4511717.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list