Skip to content

sequence of equal-length numbers (for filenames)

3 messages · Žroutík, Henrique Dallazuanna, Don MacQueen

#
Try sprintf:

sprintf("%03d", Sequence)
sprintf("file%03d.dat", Sequence)
On Mon, Jan 25, 2010 at 10:39 AM, ?rout?k <zroutik at gmail.com> wrote:

  
    
#
One can also use
   formatC()
with the flag option.

-Don
At 10:47 AM -0200 1/25/10, Henrique Dallazuanna wrote: