Re: [R] sprintf("%c",...)

About this list Date view Thread view Subject view Author view Attachment view

From: Uwe Ligges (ligges@statistik.uni-dortmund.de)
Date: Sat 28 Jun 2003 - 18:00:18 EST


Message-id: <3EFD4B12.8000703@statistik.uni-dortmund.de>

Gabor Grothendieck wrote:
> How does one get the character that corresponds to a number? Also
> the inverse?
>
> The %c format code is not supported by the R sprintf function and I
> could not find another way to do it.
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help

The ASCII character table:

ascii <- sapply(1:255, function(i)
   parse(text=paste("\"\\", structure(i, class = "octmode"), "\"",
     sep = ""))[[1]])

Uwe Ligges

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:12:09 EST