Hi All I want to import several .dat files every day of the week from the same folder.
Let say, on day 1, I have about 100 files in the folder. By using this code, everything works perfectly (maybe there is a more efficient way to do it): filenames <-list.files(path="pathtofile", full.names=TRUE) library(plyr) import.list <- llply(filenames, read.table, header=TRUE, sep="", na.strings="NA", dec=".", strip.white=TRUE) # #MERGE and RESHAPE some of the files have different columns library(reshape) data3 <- merge_recurse(import.list) # At the end of each day I will export the file as a cvs file in a different folder. My question is how can I import on day 2 (day3, day4, etc) the new files in the folder but without importing the files already imported from the previous days. any help would be appreciated martin [[alternative HTML version deleted]] ______________________________________________ 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.