strTail: Vectorized semantic equivalent of tail for a string

Description Usage Arguments Details Value Examples

Description

Picks the substring starting from the first character

Usage

1
strTail(string, n)

Arguments

string

string

n

(integer) Number of characters

Details

'n' can be in the interval [-len + 1, len] (both ends inclusive)

Value

A string

Examples

1
2
tidyrules:::strTail(c("string", "string2"), 2)
tidyrules:::strTail(c("string", "string2"), -1)

tidyrules documentation built on July 1, 2020, 5:49 p.m.