Hi everyone, I'm trying to extract the last 2 components in this vector, however, I keep failing so far. Could you please help?
address_1 <- c("Sorrento Road", " Dalkey" , " South Co. Dublin")
address_2 <- c("Ailesbury Road", " Ballsbridge", " Dublin 4", " South Dublin City")
I want to get a result of the last 2 strings in these vectors (i.e.: "Dalkey", "South Co. Dublin" from address_1 and " Dublin 4", " South Dublin City" from address_2
Thanks in advance!