[R] binary numbers

Samuel Edward Kemp sam.kemp2 at ntlworld.com
Wed Apr 14 23:20:24 CEST 2004


Is there a function in R that lets one represent an integer in binary 
format for a given number of bits? So an example would be....

 > binary.function(num=5, num.of.bits=8)
 > "00000101"

Or, is this something I have to write myself?

Any help would be appreciated.



More information about the R-help mailing list