Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. raw1 <- read.table()
  2. raw2 <- read.table()
  3. vec1 <- raw1[,2]
  4. vec2 <- raw2[,2]
  5. cbind(vec1,vec2,vec3)
  6.  
  7. datalist <- lapply(filenames, function(i) read.table(i)[, 2])
  8. # ... where filenames are the names of the files you want to read, and
  9. # passing any additional parameters to read.table that are needed
  10. # Then cbind all the entries of datalist
  11. do.call(cbind, datalist)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement