search for: hexmod

Displaying 20 results from an estimated 38 matches for "hexmod".

Did you mean: hexmode
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 format.hexmode(as.numeric(x)) # warnings abou...
2018 Apr 18
2
odd assignInNamespace / setGeneric interaction
..., which indirectly causes the environment of base::q, .GlobalEnv, to be loaded as a namespace, causing the error. Giving his replacement q function the environment getNamespace("base") avoids the problem. I can reproduce the problem by making a package that just calls setGeneric("as.hexmode",...) and a NAMEPACE file with exportMethods("as.hexmode"). If my .Rprofile puts a version of as.hexmode with environment .GlobalEnv into the base namespace, then I get the same error when trying to load the package. I suppose this is mostly a curiosity and unlikely to happen to m...
2018 Apr 19
2
odd assignInNamespace / setGeneric interaction
...to be loaded as a namespace, causing the error. >> Giving his replacement q function the environment getNamespace("base") >> avoids the problem. >> >> I can reproduce the problem by making a package that just calls >> setGeneric("as.hexmode",...) and a NAMEPACE file with >> exportMethods("as.hexmode"). If my .Rprofile puts a version of as.hexmode >> with environment .GlobalEnv into the base namespace, then I get the same >> error when trying to load the package. >> >>...
2018 Apr 18
0
odd assignInNamespace / setGeneric interaction
...environment > of base::q, .GlobalEnv, to be loaded as a namespace, causing the error. > Giving his replacement q function the environment getNamespace("base") > avoids the problem. > > I can reproduce the problem by making a package that just calls > setGeneric("as.hexmode",...) and a NAMEPACE file with > exportMethods("as.hexmode"). If my .Rprofile puts a version of as.hexmode > with environment .GlobalEnv into the base namespace, then I get the same > error when trying to load the package. > > I suppose this is mostly a curiosity and...
2018 Apr 19
0
odd assignInNamespace / setGeneric interaction
...ing the > error. > >> Giving his replacement q function the environment > getNamespace("base") > >> avoids the problem. > >> > >> I can reproduce the problem by making a package that just calls > >> setGeneric("as.hexmode",...) and a NAMEPACE file with > >> exportMethods("as.hexmode"). If my .Rprofile puts a version of > as.hexmode > >> with environment .GlobalEnv into the base namespace, then I get the > same > >> error when trying to load the package. &...
2016 Apr 16
2
Mean of hexadecimal numbers
... and if you need to convert back: ?as.hexmode -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Apr 16, 2016 at 8:20 AM, Bert Gunter <bgunter.4567 at gmail.com> wrot...
2007 Feb 15
1
convert to binary to decimal
Hello, we need to convert a logical vector to a (decimal) integer. Example: a=c(TRUE, FALSE, TRUE) (binary number 101) the function we are looking for should return dec2bin(a)=5 Is there a package for such a function or is it even implemented in the base package? We found the hexmode and octmode command, but not a binmode. We know how to program it ourselves however we are looking for a computationally efficient algorithm. Martin and Stefan
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
2010 Oct 19
0
R script help needed for RFC 2104 HMAC algorithm
...ppreciate some assistance if anyone can take a look at this code and offer advice. The RFC website does offer C code to execute the HMAC algorithm but I am not a C expert. ################ HMAC Code ############# library(digest) ########## hex to binary hexdat <- replicate(10, paste(format.hexmode(sample(16,4)-1),collapse='')) bin <- apply(outer(0:15,3:0,function(x,y) x%/%(2^y)%%2),1,paste,collapse="") names(bin) <- format.hexmode( 0:15 ) ## test ## cbind( hexdat, sapply( strsplit(hexdat,'') , function(x) paste( bin[x], collapse='' ) ) ) ##########...
2008 Dec 22
3
Convert ASCII string to Decimal in R (vice versa) was: Hex
...FFFFFFFDDDDDDDDDDCCCCC>>>>>>>>>" >> >> Each character in the above string represent a hexadecimal value. >> I want to translate those string into an array (of size == string length) >> which contain hexadecimal conversion. >> >> as.hexmode doesn't seem to do the job. > > Trying again, simplified > > ascii_str <- "ORQ>IK" > ascii_str2 <- "FDC" > > What do you want as output in both cases? I can partially understand the second > case, but not the first. > > Dieter > &g...
2009 Apr 01
1
Latex symbols in R (\perp and \parallel)
Dear All, I am sure this is a one-liner, but I cannot find the R command to generate the LaTex symbols \perp and \parallel. Consider for instance the figure (one can use any kind of data for the plot) pdf("friction_linear_chain_perpendicular.pdf") par( mar = c(4.5,5, 2, 1) + 0.1) plot(data[ ,1], data[
2016 Apr 16
0
Mean of hexadecimal numbers
...o Three h 0.08104575 0.3891798 0.1666667 s 1.00000000 1.0000000 1.0000000 v 1.00000000 0.7490196 1.0000000 Bill Dunlap TIBCO Software wdunlap tibco.com On Sat, Apr 16, 2016 at 8:27 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > ... and if you need to convert back: ?as.hexmode > > > -- Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Sat, Apr 16, 2016 at 8...
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
2014 Dec 04
4
\U with more than 4 digits returns the wrong character
If I type a character using \U syntax that has more than 4 digits, I get the wrong character. For example, "\U1d4d0" should print a mathematical bold script capital A. See http://www.fileformat.info/info/unicode/char/1d4d0/index.htm On my machine, it prints the Hangul character corresponding to "\Ud4d0" http://www.fileformat.info/info/unicode/char/d4d0/index.htm It seems
2014 Apr 15
1
ASCIIfy() - a proposal for package:tools
...# 8-bit to \u0000 ascii <- paste0("\\u", chartr(" ","0",formatC(as.character(raw),width=4))) else if(length(raw)==2 && bytes==1) # 16-bit to \x00, if possible if(utf8ToInt(char) <= 255) ascii <- paste0("\\x", format.hexmode(utf8ToInt(char))) else { ascii <- fallback; warning(char, " could not be converted to 1 byte")} else if(length(raw)==2 && bytes==2) # UTF-8 to \u0000 ascii <- paste0("\\u", format.hexmode(utf8ToInt(char),width=4)) else { ascii &l...
2013 Apr 16
1
testInstalledBasic / testInstalledPackages
...] TRUE > f <- try(as.factor( x ), silent = TRUE) > if(!inherits(f, 'try-error')) report(identical(f, as.factor( f ))) [1] TRUE > f <- try(as.function( x ), silent = TRUE) > if(!inherits(f, 'try-error')) report(identical(f, as.function( f ))) > f <- try(as.hexmode( x ), silent = TRUE) > if(!inherits(f, 'try-error')) report(identical(f, as.hexmode( f ))) [1] TRUE > f <- try(as.integer( x ), silent = TRUE) > if(!inherits(f, 'try-error')) report(identical(f, as.integer( f ))) [1] TRUE > f <- try(as.list( x ), silent = TRUE...
2002 May 31
2
Matrix-like plot
Dear List, I have a 47 species * 83 samples matrix containing percentage abundance data. I have two cluster analyses one of the samples and one of the species, and have ordered the rows and columns of the species by samples matrix according to these two cluster analyses. So far so good! Now what I want to do is create a plot with the species dendrogram at the top of the plot, the samples
2023 Apr 08
0
Time to add is.formula() to 'stats'?
...Y does as.Y() have no corresponding is.Y()? [1] "Date" "POSIXct" "POSIXlt" "dendrogram" [5] "difftime" "dist" "formula" "graphicsAnnot" [9] "hclust" "hexmode" "octmode" "person" [13] "personList" "roman" 3. For which Z does is.Z() just call inherits(., "Z")? [1] "data.frame" "factor" "numeric_version" "ordered" [5] "package...
2011 Jul 28
2
Ploting gradient
I have a simple bar chart with annual precipitation (jan to dez). I want to plot, above each bar (on a line), a square wich is color based on a scale (0-100%). With 0 being white and 100 black, like a gradient. Is it possible? How to? Thanks -- Fernando Andreacci [[alternative HTML version deleted]]
2016 Apr 16
0
Mean of hexadecimal numbers
?strtoi You'll have to remove the "#" first, e.g. via substring() -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Apr 16, 2016 at 5:47 AM, Atte Tenkanen <attenka at utu.fi> wrote: > Hi, > > How