tags:

views:

39

answers:

2

I want to save the R output to a specific place, but what I want to do is add the time and day to the file(according to the system time).

29-Jul-2010 15.35.txt

anyway to do it?

I know about Sys.time and date() but they both contain : which windows xp doesn't like.

+1  A: 
gsub(":",".",Sys.time())
deinst
+3  A: 

use format to remove the colons and put in dashes for separtors.

format(Sys.time(), "%Y-%m%-%d %H-%M-%S")
Greg
See ?strptime for the format codes (I can never find these.)
deinst