Learn R Programming

ribiosUtils (version 1.7.7)

lastChar: Return last characters from strings

Description

Return last characters from strings

Usage

lastChar(str)

Value

A vector of the same length, containing last characters

Arguments

str

A vector of character strings

Examples

Run this code
lastChar("Go tell it on the mountain")
lastChar(c("HSV", "FCB", "BVB"))

Run the code above in your browser using DataLab