I found out that there is function called .hex.to.dec
in the fBasics
package.
When I do .hex.to.dec(a)
, it works.
I have a data frame with a column samp_column
consisting of such values:
a373, 115c6, a373, 115c6, 176b3
When I do .hex.to.dec(samp_column)
, I get this error:
"Error in nchar(b) : 'nchar()' requires a character vector"
When I do .hex.to.dec(as.character(samp_column))
, I get this error:
"Error in rep(base.out, 1 + ceiling(log(max(number), base = base.out))) : invalid 'times' argument"
What would be the best way of doing this?