Skip to content
Prev 78213 / 398502 Next

dec2bin?

On Sat, 1 Oct 2005, Haiyong Xu wrote:

            
What do you mean by a binary vector?  Function intToBits might be what you 
are looking for, e.g.
[1] 00 01 00 00 01 00 01 01 00 00 01 00 00 00 00
[16] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[31] 00 00
[1] "00000000000000000000010011010010"
[1] "10011010010"

Do any of these give what you are looking for?