Re: [R] naming files or lists

2014-03-17 Thread Jeff Newmiller
Generate the desired name(s) as character variables and use those variables as the filename when saving it (them). ?paste ?paste0 ?sprintf ?format.POSIXct If you have not converted your timestamps to a time data type yet then you probably need to do that. You may be able to hack something toget

[R] naming files or lists

2014-03-17 Thread Olivier Charansonney
Hello, I would like to name files (.txt, .pdf or lists (or dataframes) with names composed from subjects' IDs, dates, and times e.g. 003DE, 03 17 2014 and 16:02:30 gives a file named 003DE-031714-160230.txt. How can I do that? Thanks for your help. [[alternative HTML version deleted