Returns n characters from the right side of the supplied string x.

rvn_substrRight(x, n)

Arguments

x

a string to manipulate

n

number of characters to use from the right side of the string

See also

rvn_substrLeft for using n characters from the left side of string

rvn_substrMRight for removing n characters from the right side of a string

rvn_substrMLeft for removing n characters from the left side of a string

Examples


rvn_substrRight("hello world",3)
#> [1] "rld"
# returns "rld"