Is there a function in R that does what atoi() does in C? -


is there function in r atoi() in c?

more precisely converts character integer.

e.g. = 65, p = 80 , on ?

chartoraw give hex value. can pass as.numeric decimal equivalent

> as.numeric(chartoraw("a")) [1] 65 > as.numeric(chartoraw("p")) [1] 80 

Comments

Popular posts from this blog

angularjs - Showing an empty as first option in select tag -

python - argument 2 to map() must support iteration -

How to wrap some text in a rectangle in QML? -