Returns a string x with n characters removed from the right side of the string.

rvn_substrMRight(x, n)

Arguments

x

a string to manipulate

n

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

See also

rvn_substrRight for using n characters from the right side of string

rvn_substrLeft for using n characters from the left side of string

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

Examples


rvn_substrMRight("hello world",3)
#> [1] "hello wo"
# returns "hello wo"