I have a list of strings that end with a decimal followed by 3 digits, eg '07:02.334'. I need to extract those last three digits and thought that some form of split would work but everything I try fails, for instance:
> s <- '07:02.334'
> s
> str_split(s, '.')
[[1]]
[1] "" "" "" "" "" "" "" "" "" ""
I've tried embedding the string s in a list, escaping the period "." and using whatever string splitters I've found while searching but none work.
I can use the below but I will need to do a split on other data later.
> file_ext(s)
[1] "334"