I have here a small list of strings:
> dput(test)
list(c("jason", "mid1920s", "living2018"))
I want to remove words with numbers so that the list only contains "jason". I've tried this code to no avail. (I would like a solution to apply my function in a list, not a vector or dataframe)
test[[1]] <- lapply(test[[1]], gsub("[[:digit:]]+", "", .))