[R] Generating file names

Mark O. Kimball mok2 at physics.buffalo.edu
Thu Apr 1 21:18:29 CEST 2004


On Thursday 01 April 2004 01:40 pm, Mark O. Kimball wrote:
> I read a data set into a data.frame. I then operate on the set, add
> columns to the frame etc. and now want to output the frame into a file.
> Trouble is, I want the file to have a name based upon the original data
> set name.
>
> I cannot figure out how to cat strings together and use that new string
> as the output filename...
>
> Example:
> 	original data name: D08a
> 	desired output name: Analyzed_D08a
>

Thanks to all who replied. Indeed, the paste() command what exactly what
I needed...

Marko
-- 
Mark O. Kimball
Gasparinilab, University at Buffalo  |  Low temp physics
mok2 at physics.buffalo.edu  |  URL: enthalpy.physics.buffalo.edu
lab phone: 716-645-2017x122  Fax: 716-645-2507




More information about the R-help mailing list