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

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

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

php - Cloud9 cloud IDE and CakePHP -