How to remove a number (one or two digits in length) and a point located immediately in front of it, every time it occurs at the end of a line in a certain variable in R ? Example:
z<-c("awe", "p.56.red.45", "ted.5", "you.88.tom")
I want to remove only .45 and .5 .
source share