[R] Paddding an integer with zeros

culpritNr1 ig2ar-saf1 at yahoo.co.uk
Tue Oct 21 19:24:23 CEST 2008


Hello List,

Can anybody point me to a number-to-string formatting function?

I need to convert, say, 12 to 00012.

I tried format() but its too stubborn: it seems to only pad with spaces.

Thank you,

Your culpritNr1


-- 
View this message in context: http://www.nabble.com/Paddding-an-integer-with-zeros-tp20095300p20095300.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list