Skip to content
Prev 301436 / 398506 Next

add leading zeros

Much easier than you think:

x <- c(1L, 9000L)

sprintf("%05i",x)

Best,
Michael
On Thu, Jul 26, 2012 at 8:08 PM, LCOG1 <jroll at lcog.org> wrote: