[R] converting decimal - hexadecimal

Diethelm Wuertz wuertz at itp.phys.ethz.ch
Sat Sep 9 14:24:59 CEST 2006


Romain Lorrilliere wrote:

>Hi,
>
>do you know, a method to convert an decimal value (integer) to the 
>corresponding hexadecimal value ?
>
>thinks for help.
>
>Romain
>
>  
>
The fBasics package has two hidden functions:


 > .dec.to.hex(145678)
[1] "02390E"

 > .hex.to.dec("02390E")
[1] 145678


DW


**



More information about the R-help mailing list