[R] "%03d" in the pdf command

From: Dennis Fisher <fisher_at_plessthan.com>
Date: Sun 24 Jul 2005 - 02:29:49 EST

The pdf man page contains the following text:

      pdf(file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"),
          width = 6, height = 6, onefile = TRUE, family = "Helvetica",
          title = "R Graphics Output", fonts = NULL, version = "1.1",
          paper, encoding, bg, fg, pointsize)

I am creating multi-page graphics in which each page is saved as a separate file. If I invoke onefile=T and I include "%03d" in the filename, each page is saved as a separate file. However, I don't understand the "%03d". Can someone explain? Am I calling a register that contains the page number?


Dennis Fisher MD
P < (The "P Less Than" Company)
Phone: 1-866-PLessThan (1-866-753-7784)
Fax: 1-415-564-2220

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Jul 24 02:37:17 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:58 EST