Displaying 5 results from an estimated 5 matches for "digitsbase".
2003 Oct 23
1
Re: ichar() function in R : 1st implementation, RFC
...ing that most of chars8bit() should really happen in C).
I'm proposing to add something like this to R-devel in the near
future.
Note that AsciiToInt() and ichar() ar for S-plus and "old S"
compatibility, whereas I think we'd really want (equivalents) of
the three functions
digitsBase()
chars8bit()
strcodes()
in R eventually.
I'm very interested in feedback,
particularly
- function and arguments' naming
- proposals for improvements
- neat examples of usage.
Martin
Martin Maechler <maechler@stat.math.ethz.ch> http://stat.ethz.ch/~maechler/
Seminar fuer...
2004 Apr 14
4
binary numbers
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.
Cheers,
Sam.
2006 Mar 26
1
addition using binary
Dear R users
I looked around for a package which can help me with the task of binary arithmetic, the closest I found is sfsmisc with digitsBase function, which may help a little in this task, but still wondering how to get this problem solved.
example:
given the addition operation of 2 real numbers to equal as below
99.30
2.11
===
102.09 <--- desired output as explained below
the decimal point is for ease or reading and...
2006 May 12
4
bitwise addition
Hello all again,
I want to do bitwise addition in R. I am trying to generate a matrix
0000
0001
0010
....
....
1111
I know the other ways of generating this matrix but I need to look at bitwise
addition.
Any suggestions???
thanks a lot
Nameeta
-------------------------------------------------
This email is intended only for the use of the individual or...{{dropped}}
2008 Dec 09
4
extract the digits of a number
Hello,
Anyone knows how can I do this in a cleaner way?
mynumber = 1001
as.numeric(unlist(strsplit(as.character(mynumber),"")))
[1] 1 0 0 1
Thanks in advance,
Gustavo