converting ascii number to strings in R -


to convert strings ascii code in r, typically use:

> strtoi(chartoraw("abcd"),16l) [1] 97 98 99 100 

is there function inverse, i.e.

>mydesiredfunc(c(97 98 99 100))  [1] "abcd" 

thanks.

also:

 rawtochar(as.raw(c(97,98,99,100))) 

type ?chartoraw @ command prompt more info.


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

php - Redirect and hide target URL -