Skip to content
Prev 227145 / 398500 Next

cbind in for loops

I have 30 files in the current directories, i would like to perform the
cbind(fil1,file2,file3,file4....file30)

how could i do this in a for loop:

such as:
     file2 <- list.files(pattern=".out3$")
       for (j in file2) {
         cbind(j).......how to implement cbind here
      }


Thanks.