Last chance! 50% off unlimited learning
Sale ends in
0:255
for each (one byte) character in strings
.AscToChar(i)
CharToAsc(x)
1:255
.character
vector.AscToChar
and CharToAsc
return a
vector of the same length as their argument.1:127
make up the ASCII encoding which should be
identical for all Rversions, whereas the Sys.setlocale
.
Note that 0
is no longer allowed since, Rdoes not allow
\0
aka nul
characters in a string anymore.(x <- CharToAsc("Silvia"))
paste(AscToChar(x), collapse="")
Run the code above in your browser using DataLab