as part of the excel functions in R, I have developed this custom function, reproducing the excel right() function in th R language. Feel free to copy and use it.
right = function (string, char){ substr(string,nchar(string)-(char-1),nchar(string))}
you can find other function in the Excel functions in R post.
One thought on “excel right() function in R”