powered by
Extract a single character of a string, using its index.
str_elem(string, index)
A string.
An integer. Negative indexing is allowed as in stringr::str_sub().
stringr::str_sub()
A one-character string.
# NOT RUN { str_elem("abcd", 3) str_elem("abcd", -2) # }
Run the code above in your browser using DataLab