Hi   Hth -- Gerrit , 
I found the problem 
I added "sep" and one bracket was  missing  
the new codes are as follows 
setwd("/Groups/data_first/") 
file_was <- list.files(path = ".", pattern = "v2.0.2.was", all.files = 
 FALSE, full.names = FALSE, recursive = FALSE, ignore.case = FALSE) 
 path<-c("/Groups/data_second/") 
 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],sep=""),header=TRUE)
     data   <- cbind (data1,data2)

} 
data 


Cheers 
Uday 

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

______________________________________________
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