[R] converting decimal - hexadecimal

Hans-Joerg Bibiko bibiko at eva.mpg.de
Wed Aug 30 16:35:38 CEST 2006


An other way would be:

a <- 123
class(a) <- "hexmode"
a
[1] "7b"

On 30 Aug 2006, at 16:26, mel wrote:

> ?sprintf
>
> ex :
>> sprintf('%X',10)
> [1] "A"
>
> hih
>
> ______________________________________________
> 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.
>
>

**********************************************************
Hans-Joerg Bibiko
Max Planck Institute for Evolutionary Anthropology
Department of Linguistics
Deutscher Platz 6     phone:   +49 (0) 341 3550 341
D-04103 Leipzig       fax:     +49 (0) 341 3550 333
Germany               e-mail:  bibiko at eva.mpg.de



More information about the R-help mailing list