Hello,

I would like to transform a column of RGB colors codes to hexadecimals codes.
In Excel ther is a function called "DECHEX" I can not find the same thing in Stata.

For exemple :
R G B
180 0 0
looks like that in hexa
h1 h2 h3
B4 00 00
"#B40000" is the hexadecimal transcription of "180/0/0" in RGB

Regards.
Marc