Displaying 20 results from an estimated 600 matches similar to: "convert to binary to decimal"
2005 Nov 14
1
as.integer with base other than ten.
Is there an R function analogous to the C function strtol?
I would like to convert a binary string into an integer.
Cheers for advice
Will
--
__________________________________________________
William Astle
Statistical Genetics,
David Balding's Group.
Imperial College,
St Mary's Hospital Campus,
147 Norfolk Place,
Paddington.
London.
W2 1PG
2006 Aug 30
8
converting decimal - hexadecimal
Hi,
do you know, a method to convert an decimal value (integer) to the
corresponding hexadecimal value ?
thinks for help.
Romain
--
Lorrilli?re Romain
UMR 8079 Laboratoire Ecologie, Syst?matique et Evolution
B?t. 362
Universit? Paris-Sud
91405 Orsay cedex
France
tel : 01 69 15 56 85
fax : 01 69 15 56 96
mobile : 06 81 70 90 70
email : romain.lorrilliere at ese.u-psud.fr
2005 Oct 01
3
dec2bin?
Hello,
I just want to ask if there is any function that can convert decimal
number to binary vector.
Thanks a lot.
Haiyong
2010 Apr 22
2
R2.11.0 - rasterImage() and barplot fill-patterns
Hello Peter,
Thank you, and the R core team, for the new release.
I see that in R 2.11.0 there is now support for rendering of raster (bitmap)
images through rasterImage().
I am wondering - can this be used to create a texture/fill-pattern for
hist()/barplot() ?
(A request made several times throughout the years on the mailing list.
For example:
2008 Dec 22
3
Convert ASCII string to Decimal in R (vice versa) was: Hex
Hi Dieter,
Sorry my mistake. I wanted to convert them
into Decimal (not Hexadecimal).
Given this string, the desired answer follows:
> ascii_str <- "ORQ>IK"
79 82 81 62 73 75
> ascii_str2 <- "FDC"
70 68 67
- Gundala Viswanath
Jakarta - Indonesia
On Mon, Dec 22, 2008 at 5:49 PM, Dieter Menne
<dieter.menne at menne-biomed.de> wrote:
> Gundala
2009 May 06
2
convert large integers to hex
Hi,
I'm wondering if someone has solved the problem of converting very
large integers to hex. I know about format.hexmode and as.hexmode, but
these rely on integers. The numbers I'm working with are overflowing
and losing precision. Here's an example:
x <- "6595137340052185552" # stored as character
as.integer(x) # warning about inaccurate conversion
2002 Feb 04
2
ASCII characters: from decimal code to R octal?
Is there a straightforward way to convert character information from
decimal representation to the octal one used by R?
I'd like something like a function ascii(number,base=10), such that
> ascii(91)
[1] "\133"
I can easily do the mapping from 91 to 133, but what is a good way to
operate on 133 to deliver "\133"?
Would a lookup table be a better solution?
David
2018 Apr 18
2
odd assignInNamespace / setGeneric interaction
A coworker got tired of having to type 'yes' or 'no' after quitting R: he
never wanted to save the R workspace when quitting. So he added
assignInNamespace lines to his .Rprofile file to replace base::q with
one that, by default, called the original with save="no"..
utils::assignInNamespace(".qOrig", base::q, "base")
2001 Dec 26
3
bug with var(rep(1e30, 3)) (PR#1228)
There seems to be a bug with var() when the argument is a vector with
exactly three values of 1e30 (or close to this value). This does not happen
with twice, four (or more) times this value, or another value.
> var(rep(1e30, 3))
[1] 2.971056e+28
> var(rep(1.2e30, 3))
[1] 2.971056e+28
> var(rep(0.9e30, 3))
[1] 2.971056e+28
> var(rep(0.8e30, 3))
[1] 0
> var(rep(1e29, 3))
[1] 0
>
2018 Apr 19
2
odd assignInNamespace / setGeneric interaction
>>>>> Michael Lawrence <lawrence.michael at gene.com>
>>>>> on Wed, 18 Apr 2018 14:16:37 -0700 writes:
> Hi Bill,
> Ideally, your coworker would just make an alias (or shortcut or
> whatever) for R that passed --no-save to R. I'll try to look into this
> though.
> Michael
Yes, indeed!
As some of you know, I've
2006 Jan 14
1
BUG: HTTP body content get parsed in PUT call
I''m developing a Rail application to accept data upload using HTTP PUT
call. Support for PUT in Rails seems to be broken in query params
parsing. I have a patch to fix the problem, but I''m not sure if it is
the "right" solution. Can some Rails developers take a quick look? I
can really use some help. :-)
Here is the evident of broken param parsing.
Processing
2009 Oct 23
2
reg-tests-1.R failure with unstable
Hi,
I am getting an error from one of the test files
tests/reg-tests-1.R using the unstable version (r50179).
(i've learned my lessons; this is a clean build.) The tail
of reg-tests-1.Rout.fail is
Loading required package: myTst
building package pkgA ...
installing package pkgA using file pkgA_1.0.tar.gz ...
Error in as.octmode(mode) : invalid digits
Error in install.packages(r, lib =
2006 May 30
2
Mongrel Bug
Mongrel''s tempfile generation on
win32 is broken meaning large files can''t be uploaded.
On line 198 of mongrel.rb
(0.13.3) HttpRequest#initialize the tempfile function is called:
if clen > Const::MAX_BODY
@body =
Tempfile.new(self.class.name)
@body.binmode
else
Unfortunately this also
includes the module name as the example shows:
2012 Jun 08
2
remove leading slash
Hello,
How do I change this:
> cnt_str
[1] "\002" "\001" "\102"
...to this:
> cnt_str
[1] "2" "1" "102"
Having trouble because of this:
> nchar(cnt_str[1])
[1] 1
Thanks!
Ben
[[alternative HTML version deleted]]
2008 Jan 21
1
hexadecimal to binary conversion
Se ha borrado un texto insertado con un juego de caracteres sin especificar...
Nombre: no disponible
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20080121/7b562f32/attachment.pl
2002 Jun 18
3
Maybe a problem in binary read/write (PR#1688)
Full_Name: Johnny Accot
Version: 1.5.1
OS: Linux
Submission from: (NULL) (198.4.83.52)
Hi.
I'm having a problem with the binary read/write functions. I'm writing a device
driver in R (why not?) and of course I have to send a couple commands to the
device. Typically, I send one byte, receive one acknowledgement byte, send
another byte, receive an ACK, and so on. At least this is what
2001 Apr 02
1
[PATCH]: scp could hang in Cygwin
Hi,
attached is a patch which solves the following problem:
Sometimes scp could hang in Cygwin when used as remote end using
the -t option. This is due to a binmode/textmode problem which
could be raised by the login shell which is used by the user and
it's setting of textmode on stdin. The patch solves that problem
by explicitly setting binmode on stdin.
Besides solving the hanging
2010 Sep 09
1
scalable < > delimiters in plotmath
Dear list,
I read in ?plotmath that I can use bgroup to draw scalable delimiters
such as [ ] and ( ). The same technique fails with < > however, and I
cannot find a workaround,
grid.text(expression(bgroup("<",atop(x,y),">")))
Error in bgroup("<", atop(x, y), ">") : invalid group delimiter
Regards,
baptiste
sessionInfo()
R version
2010 Sep 09
1
scalable < > delimiters in plotmath
Dear list,
I read in ?plotmath that I can use bgroup to draw scalable delimiters
such as [ ] and ( ). The same technique fails with < > however, and I
cannot find a workaround,
grid.text(expression(bgroup("<",atop(x,y),">")))
Error in bgroup("<", atop(x, y), ">") : invalid group delimiter
Regards,
baptiste
sessionInfo()
R version
2003 Jun 28
2
oggenc and Encoding with VBR
Apologies if this is know. But I've spent most of today Googling for a way
to get this working, and to me, something is wrong here. But it might well
be me. Anyway...
I've been trying to record direct from the soundcard into an ogg file.
I came up with
rawrec -t 10 | oggenc -r -Q -q 5 - > foo.ogg
which partially works. ogg123 will play it, but ogginfo reports
Warning: Hole in