Skip to content
Prev 276679 / 398506 Next

splitting by the last occurance of a dot

On Tue, Nov 8, 2011 at 6:06 AM, Ashim Kapoor <ashimkapoor at gmail.com> wrote:
Assuming we want to split off the number at the end try this which
splits on those dots which are followed by a digit:

strsplit(r, "\\.(?=\\d)", perl = TRUE)