Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. # get file names maching the pattern in current directory
  2. files <- list.files(pattern="6025_*")
  3.  
  4. # read and combine the files (in CSV format)
  5. data <- do.call(rbind, lapply(files, function (name) {
  6. cbind(filename = name, read.csv(name, header = FALSE))
  7. }))
  8.  
  9. # print row number of data
  10. nrow(data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement