Displaying 20 results from an estimated 100 matches similar to: "Re: ichar() function in R : 1st implementation, RFC"
1999 Oct 18
1
reading binary file
Is there facility in R to read binary file? In Splus scan() has
'width=' argument and AsciiToInt() command to translate the
binary data. Is there something similar in R?
Thanks,
-Yudi-
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or
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 Feb 20
1
Plots: displaying mathematical symbols in specific fonts
Dear SavioRs,
I am doing some research where characters in different microsoft
fonts serve as experimental stimuli. Hence, in plot labels, I would
like to display the characters in specific microsoft fonts. I have
figured out how to display letters and numbers, but I am having
trouble with symbols such as capital delta. Before I go further, I
am using R 2.2.1 on Windows XP with everything
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
2011 Dec 01
2
How to speed up int2bin conversion?
Dear R-help members,
I'm processing a large amount of MODIS data where quality assessment
information is stored as an integer value for each pixel. I have to
converted this number to an 8 digit binary flag to get access to the
stored quality code (e.g. in2bin(165,8) = 1 0 1 0 0 1 0 1).
Unfortunately, I did not manage to find a package providing a fast
function to do so. I need to run
2018 Feb 08
2
[PATCH] syslinux/com32: Fix the printing of left zero padded hexadecimals with a leading '0x'.
From: Brett Walker <brett.walker at geometry.com.au>
When printing hexadecimal numbers to a fixed width, padded with leading zeros,
and also having a leading '0x'; the resultant string can be shortened by up to
two characters if any leading zero padding character required is.
int hexnum = 0x00001234;
printf("%08X", hexnum); // results in 00001234
2010 Mar 19
5
Encrypt/decrypt in R
Hi all,
Does any one know of any encryption/decryption algorithms in R? I'm
not looking for anything robust - I want some way of printing output
to the screen that the user can't read immediately, but can decrypt a
little later. The main thing I don't want to the user to see is a
number, so (e.g.) ROT13 isn't appropriate.
Hadley
--
Assistant Professor / Dobelman Family Junior
1998 Nov 04
0
S internal function AsciiToIn
Hey,
I'm trying to use the code from the book S-Poetry in R (almost
everything
runs without problems), some place it uses an s-plus internal function
AsciiToInt, to translate characters to ascii values (a better name
should be CharToAscii ?) I cannot find anything in R to do that,
getting
the ascii values? Is there something, or must it be added at the C
level?
Thanks,
Kjetil halvorsen
2001 Feb 02
1
Finding a gsub like function in S+ 2000
Hello All:
In R 1.2.0, one can easily change characters in a string using, for example,
the following command,
gsub("-"," ",c("1-7-1997","12-21-1997"))
[1] "1 7 1997" "12 21 1997"
Is there a similar command with S+ 2000?
Thank you,
ANDREW
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help
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}}
2003 Sep 14
2
Convert decimal to binary data
Hi,
I would like to convert a decimal into a binary number, for instance :
2->(1,0)
Any one knows how to do that ?
Thanks a lot
paul
---
[[alternative HTML version deleted]]
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
2015 Nov 14
2
Inexplicable ASAN report. Code generation bug?
On Thu, Nov 12, 2015 at 8:42 PM, Kostya Serebryany <kcc at google.com> wrote:
> 2 questions:
> - Do you see this with the fresh llvm trunk?
> - Can you prepare a minimized example?
Pretty recent, I updated a couple days ago. I tried to minimize the
attached but at the same time I didn't want to lose too many unions
and casts in case it didn't trigger any more.
$ clang
2012 Apr 09
1
Panel.abline would not show beyond a certain slope value
Hi,
Please find the code and data following. Problem appears in lines 37 - 42 of the code. I am using R.2.13.0 on WinXP.
Regards,
Fayez
PowerLawGraphsAblineQn.R?
library('reshape')
library(lattice)
library(igraph) # to use power.law.fit function
library(latticeExtra) # to use panel.lmlineq in loglog xyplot
File2Open = "C:\\Documents and Settings\\All
2018 Feb 08
0
[PATCH] syslinux/com32: Fix the printing of left zero padded hexadecimals with a leading '0x'.
On Thu, Feb 08, 2018 at 11:01:21AM +0000, Brett Walker via Syslinux wrote:
> From: Brett Walker <brett.walker at geometry.com.au>
>
> When printing hexadecimal numbers to a fixed width, padded with leading zeros,
> and also having a leading '0x'; the resultant string can be shortened by up to
> two characters if any leading zero padding character required is.
>
2005 Apr 21
1
Fwd: (KAME-snap 9012) racoon in the kame project
FYI, looks like support for Racoon is ending. Does anyone have any
experience with the version in ipsec-tools ?
---Mike
>Racoon users,
>
>This is the announcement that the kame project will quit providing
>a key management daemon, the racoon, and that "ipsec-tools" will become
>the formal team to release the racoon.
>The final release of the racoon in the
2005 Jun 27
1
Unused argument "na.action" to pairs.formula
Hi,
I believe that the argument "na.action" is not used in the function
pairs.formula (graphics). I am using R 2.1.1 for Windows, downloaded
from CRAN.
This is the body of the function as it is now:
function (formula, data = NULL, ..., subset, na.action = stats::na.pass)
{
m <- match.call(expand.dots = FALSE)
if (is.matrix(eval(m$data, parent.frame())))
m$data
2003 Dec 11
1
Using \leq for <= in Rd files
Hi,
When writing formulae in Rd files I use \leq to get a less-than-or-equal-to
sign, as this is what the LaTeX references I consulted suggested. This works
correctly for the PDF output (Rcmd Rd2dvi.sh --pdf), however when the Rd
file is converted to text or html this command is converted to "<=q".
A workaround is to use \le instead of \leq which works with my LaTeX
distribution
2013 Oct 18
0
pamer.fnc y la nueva versión de R
Gracias a todos por las recomendaciones. Ya me he puesto en contacto con el
autor y le explicado donde esta el error. Es tan fácil como que han
cambiado la estructura de los objetos tipos lmer desde la versión 2.15.3
con lo que su paquete dejo de funcionar. Por suerte la nueva estructura
conserva por lo menos la parte necesaria para hacer sus funciones. Se
localizar el fallo y como arreglarlo, lo
2013 Dec 02
1
pamer.fnc y la nueva versión de R
Hace unos meses os escribir para comunicaros que había un fallo en esta
función. Como os prometí os comento la respuesta por si alguno está
interesado en utilizar el paquete LMERconvenientsfucntions
Dear Javier,
The package has been updated and should work for you fine now. Note that
function mcp.fnc does not return the fourth plot (dffits) anymore. We still
have to figure out a way to compute