Substring from right
substr_r(x, n)
x
n
http://stackoverflow.com/questions/7963898/extracting-the-last-n-characters-from-a-string-in-r
Useful links