powered by
Given a character vector, str_right() returns the right side of a string.
str_right()
str_right(string, n = 1)
A character vector.
The character from which the right portion will be returned.
Optional. The number of characters to return from the right side of string.
str_left() which extracts characters from the left and str_mid() which returns a segment of character strings.
str_left()
str_mid()
str_right("Sale Price") str_right("Sale Price", n = 5)
Run the code above in your browser using DataLab