[R] convert "1", "10", and "100" to "0001", "0010", "0100" etc.

Peng, C cpeng.usm at gmail.com
Sat Sep 11 05:00:07 CEST 2010


Thanks David. 
func() simply prints out the 0010 as a text value. It is still not numeric.
I am just curious about it.

> is.numeric(func4(0100))
00100[1] FALSE


-- 
View this message in context: http://r.789695.n4.nabble.com/convert-1-10-and-100-to-0001-0010-0100-etc-tp2535023p2535345.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list