Re: [R] vector in filename

From: [Ricardo Rodriguez] Your XEN ICT Team <>
Date: Fri, 18 Apr 2008 16:16:33 +0200

Thanks Hadley,

hadley wickham wrote:
> Have you looked at ?png :
> filename: the name of the output file. The page number is substituted
> if a C integer format is included in the character string, as
> in the default. (The result must be less than 'PATH_MAX'
> characters long, and may be truncated if not. See
> 'postscript' for further details.) Tilde expansion is
> performed where supported by the platform.
> so the default filename ("Rplot%03d.jpeg") already does what you want.
> Hadley

Yes, I've read this help page. But as far as I understand, this only allows to generated a "paged" file name, but not to include the value of a variable in the file name. Foo is a dummy name. It is only the numerical part of the name what variates in the samples above. I guess it won't be difficult to get Foo from values in a vector once I understand how the whole thing does work.



Ricardo Rodríguez
Your XEN ICT Team

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 18 Apr 2008 - 15:07:59 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 18 Apr 2008 - 15:30:29 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive