getChar | R Documentation |
This function retrieves a character at a specific index from a string.
getChar(x, index)
x |
A character string. |
index |
The index of the character to retrieve. If it is length 1,
then the same character is retrieved for all elements of |
The character at the specified index.
# Get the character at index 2
getChar("hello", 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.