q.substring_right: Substring of a Character Vector from Right End of the String

View source: R/q.substring_right.R

q.substring_rightR Documentation

Substring of a Character Vector from Right End of the String

Description

Extract a substring n characters from the right end of a string

Usage

q.substring_right(x, n)

Arguments

x

string

n

number of characters from the right end of the string to extract

Details

Extract a substring n characters from the right end of a string. This is useful when traversing a vector, list or data frame with strings of different lengths.

Value

A character vector of length n

Author(s)

Abdul Malik Sulley

Examples

q.substring_right("twelve", 3)
# "lve"

qwickmalik/qwickr documentation built on March 30, 2022, 2:59 p.m.