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