[R] binary numbers
Samuel Edward Kemp
sam.kemp2 at ntlworld.com
Thu Apr 15 00:26:22 CEST 2004
Hi,
I just wrote a little C program (and interfaced it with R) that does it
for me, but I will take a look at that function.
Cheers,
Sam.
Uwe Ligges wrote:
> Samuel Edward Kemp wrote:
>
>> Hi,
>>
>> 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.
>
>
> binary() in package "wle".
>
> Uwe Ligges
>
>
>
>
>> Cheers,
>>
>> Sam.
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide!
>> http://www.R-project.org/posting-guide.html
>
>
>
More information about the R-help
mailing list