[R] Generating file names

Thomas Lumley tlumley at u.washington.edu
Thu Apr 1 20:51:52 CEST 2004

On Thu, 1 Apr 2004, 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


This is mentioned on the help page for cat(), precisely to help
Unix-influenced people who think that `cat' is a natural abbreviation for


More information about the R-help mailing list