substrRight: Return last n characters of a string

View source: R/functions.r

substrRightR Documentation

Return last n characters of a string

Description

Return last n characters of a string

Usage

substrRight(x, n)

Arguments

x

character. A character string

n

integer. Number of characters

Value

character string of the last n characters of x

Author(s)

Simon Frey

See Also

substr

Examples

substrRight('hello',1)
substrRight('more than one word', 6)

freysimon/TigR documentation built on July 26, 2024, 1:28 a.m.