Hello, please look here: ================================================================= > > sprintf("%03s", as.character(1:5)) [1] " 1" " 2" " 3" " 4" " 5" > ================================================================= There should be a leading "0" isntead of space-chars?! I use R version 2.6.2 (2008-02-08) Ciao, Oliver