[R] Creating file names.

greggallen at gmail.com greggallen at gmail.com
Fri Jan 9 00:47:22 CET 2009


I have a function that is called from a "sourced" script, whenever
certain conditions are met.

I have this inside it:  if(P > 0.9)save( file = today() , myLMSmodel );


This gives me files that look like this: Thu Jan  8 14:04:43 2009

That works fine on my Mac, but it would be much more convenient to
have something like this:

LMSMOD_Jan_08_09_1404


Does anyone know how I can do this?

(You don't have to put in the underscores, if it's too much work.)

Thanks,


Gregg Allen




More information about the R-help mailing list