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/TigeR documentation built on April 18, 2024, 4:57 p.m.