TreeTools (version 1.4.1)

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))

Arguments

string

Character string.

len

(Optional) Integer specifying number of characters in string.

Value

RightmostCharacter() returns the rightmost character of a string.

Examples

Run this code
# NOT RUN {
RightmostCharacter("Hello, World!")

# }

Run the code above in your browser using DataCamp Workspace