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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -