sprintf does not fill with "0"?!
"Oliver Bandel" <oliver at first.in-berlin.de> wrote in message news:1221513552.6194.5.camel at calcman...
Hello,
sprintf("%03s", as.character(1:5))
[1] " 1" " 2" " 3" " 4" " 5"
Would this be OK as an alternative?
sprintf("%3.3d", 1:5)
[1] "001" "002" "003" "004" "005" efg Earl F. Glynn Scientific Programmer Stowers Institute for Medical Research