powered by
Truncate Characters from the Right
right(x, n)
substring
can be number, strings, verctors, dataframe or matrix.
length
right("abcd",3) right(c("abc","gjh"),2) df = data.frame( a = c(123,234,456), b = c("abc","bcd","hjg") ) right(df,2)
Run the code above in your browser using DataLab