[R] sprintf("%c",...)
Uwe Ligges
ligges at statistik.uni-dortmund.de
Sat Jun 28 10:00:18 CEST 2003
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 at 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
More information about the R-help
mailing list