strTail: Vectorized semantic equivalent of tail for a string

strTailR Documentation

Vectorized semantic equivalent of tail for a string

Description

Picks the substring starting from the first character

Usage

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


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



tidyrules documentation built on June 30, 2024, 1:07 a.m.