[R] converting decimal - hexadecimal

jim holtman jholtman at gmail.com
Wed Aug 30 16:22:57 CEST 2006


use sprintf

> sprintf("%x",123)
[1] "7b"
>



On 9/30/06, Romain Lorrilliere <romain.lorrilliere at ese.u-psud.fr> wrote:
> 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
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
>
>
> --
>
> Romain Lorrillière
>
>
>
> 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
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?



More information about the R-help mailing list