charToInt | R Documentation |
Converts a vector
of ASCII character
s to a equal length vector of ASCII
integer
s.
## Default S3 method:
charToInt(ch, ...)
ch |
A |
... |
Not used. |
Returns an ASCII integer
vector
.
Henrik Bengtsson
intToChar
()
utf8Conversion
.
rawConversion
i <- charToInt(unlist(strsplit("Hello world!", split=NULL)))
# Gives: 72 101 108 108 111 32 119 111 114 108 100 33
ch <- intToChar(c(72,101,108,108,111,32,119,111,114,108,100,33))
# Gives: "H" "e" "l" "l" "o" " " "w" "o" "r" "l" "d" "!"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.