Learn R Programming

TreeTools (version 1.12.0)

RightmostCharacter: Rightmost character of string

Description

RightmostCharacter() is a convenience function that returns the final character of a string.

Usage

RightmostCharacter(string, len = nchar(string))

Value

RightmostCharacter() returns the rightmost character of a string.

Arguments

string

Character string.

len

(Optional) Integer specifying number of characters in string.

See Also

Other string parsing functions: EndSentence(), MorphoBankDecode(), Unquote()

Examples

Run this code
RightmostCharacter("Hello, World!")

Run the code above in your browser using DataLab