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