[R] Decimal to hexadecimal

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Apr 29 16:24:01 CEST 2005


?sprintf, if you mean to convert a number to a hexadecimal character 
representation. To convert a decimal representation to a number, use 
as.numeric.

This has been covered recently so please try the archives.

On Fri, 29 Apr 2005, Gregor GORJANC wrote:

> Is there an R function that would convert decimal code to hexadecimal one?

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list