Trying to use StringR to find all the digits which occur at the end of the text.
For example
x <- c("Africa-123-Ghana-2", "Oceania-123-Sydney-200")
and StringR operation should return
"2 200"
I believe there might be multiple methods, but what would be the best code for this?
Thanks.