right: Function to trim n trailing characters from string.

rightR Documentation

Description

Inspired by PosgreSQL https://www.postgresql.org/docs/current/functions-string.html.

Usage

right(string, n)

Arguments

string

String of vector of strings.

n

Number of characters to be trimmed

Author(s)

Andreas Scharmueller, andschar@proton.me

Examples

v = c('1234567', 'abcdefg')
right(v, 2)


andschar/andmisc documentation built on Jan. 19, 2025, 10:46 a.m.