Skip to content
Prev 206139 / 398506 Next

Drop last numeral

In addition to the substring and regular expression solutions, if you are certain that everything will be numeric (and integer as in your examples), then you could just convert to numeric, divide by 10, and then drop the decimal (floor or as.integer).