A question came across talkstats.com today in which the poster wanted to remove the last period of a string using regex (not strsplit). I made an attempt to do thi
strsplit
I'm sure you know this by now since you use stringi in your packages, but you can simply do
stringi
N <- c("59.22.07", "58.01.32", "57.26.49") stringi::stri_replace_last_fixed(N, ".", "") # [1] "59.2207" "58.0132" "57.2649"