I have a few files that are named after rural properties like the following:
v1 <- c("Badger", "Hill", "Farm", "1.json")
v2 <- c("Buffalo", "Pass", "Farm", "2.json")
> v1
[1] "Badger" "Hill" "Farm" "1.json"
> v2
[1] "Buffalo" "Pass" "Farm" "2.json"
I managed to split the file name elements, but I want to keep only those which do not contain any number on it. The desired output would be:
> v1
[1] "Badger" "Hill" "Farm"
> v2
[1] "Buffalo" "Pass" "Farm"
Quite simple, but I just can't wrap my head around it. How can I achieve that?