[R] write file to date-stamped folder
c.meyer at sms.ed.ac.uk
Mon Aug 31 09:45:11 CEST 2009
I would like to be able to write all files produced on one day to an output
directory with that date stamp, or alternatively stamp the date in the
filename. So that if i run the same code the next day the files will not be
here's what i have to start with:
baseDir = getwd()
outputDir = paste(baseDir,"/OutputData-", Sys.Date(),sep="")
and lets say i want to write the table "test.table" to a file:
write.table(test.table, "test.table.txt", sep="\t")
How do i make this write to outputDir?
View this message in context: http://www.nabble.com/write-file-to-date-stamped-folder-tp25219504p25219504.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help