Give a string such as this:
x <- c("Carroll 103 215 Albany City 24 41 Allegany 115 231 Charlotte 116 248")
What's the best way to split this into lines such as this:
# [1] Carroll 103 215
# [2] Albany City 24 41
# [3] Allegany 115 231
# [4] Charlotte 116 248
It's the "Albany City" that is giving me trouble. There are other words too that will contain one or more words, (e.g. "Port Jervis City"), however, these should always be followed by numeric values of length 1 or more.