Returns the character at location i inside the string.
Examples
# Example string
s = "statistics"
# Single character
char_at(s, 1)
#> [1] "s"
# Vectorized position
char_at(s, c(2, 3))
#> [1] "t" "a"
Returns the character at location i inside the string.
# Example string
s = "statistics"
# Single character
char_at(s, 1)
#> [1] "s"
# Vectorized position
char_at(s, c(2, 3))
#> [1] "t" "a"