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
Post a Comment