right: Right substring function.

View source: R/right.R

rightR Documentation

Right substring function.

Description

Takes a string or numeric value and subsets out the right n characters.

Details

A simple function that extracts the right number of specified characters from a string or numeric value.

Output

The returned output will be same class as the input.

Usage

right(x, n)

Arguments

x

numeric value or string.

n

numeric. The number of characters to extract from the right side.

Author(s)

Nicholas Carey - nicholascarey@gmail.com

See Also

left

Examples

right("some text", 4)
right(123456, 4)


nicholascarey/caRey documentation built on Sept. 30, 2023, 3:47 a.m.