char_at | R Documentation |
Returns the character at location i inside the string.
char_at(x, index)
x |
A |
index |
An |
A character vector
of length index
.
James J Balamuta
# Example string
s = "statistics"
# Single character
char_at(s, 1)
# Vectorized position
char_at(s, c(2, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.