[R] strings
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Wed Oct 4 11:26:56 CEST 2000
Kurt Hornik <Kurt.Hornik at ci.tuwien.ac.at> writes:
> > which reminds me that I've had a desire for something like
> > the old S function [from the blue book, and library(examples) I think]
> > ichar(ch)
> > which would return a vector of integers, each the (decimal) equivalent of
> > the (ISO-latin1) representation of the corresponding characters in ch.
>
> > This should be easy enough (and be done in C). Any volunteers?
>
> That should not be hard to copy from toupper(). For a character vector
> it would give a list of integer vectors?
>
> However, I don't think we want ISO-latin-1 hard-wired ...
Wiring what is already wired (i.e. using the current representation)
would seem OK (um, assuming it's 8-bit).
I actually wanted the reverse operation (integers to string) a few days
ago in order to check the new stringizer for tcltk.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list