substrRight: substrRight

Description Usage Arguments Value Examples

Description

substrRight returns a substring of a string or vector of strings of length less than or equal to a given 'n', starting with the right-most character.

Usage

1

Arguments

x

Character string or vector of character strings

n

Number of characters to exract from strings starting with the right-most character.

Value

A string or vector of strings of length less than or equal to n, consisting of characters on the right side of the strings.

Examples

1
2
3
4
5
6
7
8
#x = "OneString"
#x2 = c("ThisIsOne", "ThisIsTwo", "This is three", "And this4")
#Regular substr() usage
#substr(x, start = 1, stop = 3)
#substr(x2, start = 1, stop = 3)
#substrRight usage
#substrRight(x, n = 3)
#substrRight(x2, n = 3)

TaylorAndrew/atClean documentation built on May 9, 2019, 4:21 p.m.