Based on the RIGHT() function from Microsoft Excel

right(.word, .length)

Arguments

.word

string to extract characters from

.length

number of letters to extract from end of .word

Author

Samuel P Callisto, PhD

Examples


# If you want to get the end 3 characters from a string
right("string-123", 3)
#> [1] "123"