Re: [R] dec2bin?

2005-10-03 Thread Tuszynski, Jaroslaw W.
Subject: [R] dec2bin? Hello, I just want to ask if there is any function that can convert decimal number to binary vector. Thanks a lot. Haiyong __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] dec2bin?

2005-10-03 Thread Prof Brian Ripley
40 5e 38 55 29 7a 6a 2f 40 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Haiyong Xu Sent: Saturday, October 01, 2005 4:22 PM To: Help R Subject: [R] dec2bin? Hello, I just want to ask if there is any function that can convert decimal number

Re: [R] dec2bin?

2005-10-03 Thread Tuszynski, Jaroslaw W.
\ [EMAIL PROTECTED] ` \ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 03, 2005 11:49 AM To: Tuszynski, Jaroslaw W. Cc: Haiyong Xu; Help R Subject: Re: [R] dec2bin? On Mon, 3 Oct 2005, Tuszynski

[R] dec2bin?

2005-10-01 Thread Haiyong Xu
Hello, I just want to ask if there is any function that can convert decimal number to binary vector. Thanks a lot. Haiyong __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] dec2bin?

2005-10-01 Thread Prof Brian Ripley
On Sat, 1 Oct 2005, Haiyong Xu wrote: I just want to ask if there is any function that can convert decimal number to binary vector. What do you mean by a binary vector? Function intToBits might be what you are looking for, e.g. x - as.integer(1234) y - intToBits(x) options(width=50) y