Skip to content
Prev 14168 / 398503 Next

Getting characters from integers

On Wed, 10 Oct 2001 09:55:25 -0300, you wrote in message
<3BC4453D.94ACB0E0 at acadiau.ca>:
There are the letters and LETTERS vectors.  For example,

 > letters[1:3]
 [1] "a" "b" "c"

I don't think there's any function that does general ASCII
conversions, but you could fairly easily enter your own vector of
characters if letters aren't sufficient.  I imagine you'll have a hard
time entering a null character.  If you're on some platforms, you
could write your own general typecasting function using a fifo, but
those aren't supported everywhere.

Duncan Murdoch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._