right: Extract the 'n' characters from the right of a string 'right'...

View source: R/right.R

rightR Documentation

Extract the n characters from the right of a string right uses a specific case of the substr function to take only the right most n characters from the input string.

Description

Extract the n characters from the right of a string right uses a specific case of the substr function to take only the right most n characters from the input string.

Usage

right(x, n)

Arguments

x

a string

n

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

Examples

foo <- "foo"
right(foo, 2)

mike-decarlo/augmentR documentation built on March 17, 2023, 11:05 a.m.