Picks the substring starting from the first character

strTail(string, n)

Arguments

string

string

n

(integer) Number of characters

Value

A string

Details

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

Examples

# \donttest{ tidyrules:::strTail(c("string", "string2"), 2)
#> [1] "ng" "g2"
tidyrules:::strTail(c("string", "string2"), -1)
#> [1] "tring" "tring2"
# }