R/string.R
lastChar.Rd
Return last characters from strings
lastChar(str)
A vector of character strings
A vector of the same length, containing last characters
lastChar("Go tell it on the mountain") #> [1] "n" lastChar(c("HSV", "FCB", "BVB")) #> [1] "V" "B" "B"