x <- c(
"I like 56 dogs!",
"It's seventy-two feet from the px290.",
NA,
"What",
"that1is2a3way4to5go6.",
"What do you*% want? For real%; I think you'll see.",
"Oh some <html>code</html> to remove"
)
rm_non_words(x)
rm_non_words(x, extract=TRUE)
## For extraction purposes the following setup is more useful:
rm_default(x, pattern = "[^A-Za-z' ]", extract=TRUE)Run the code above in your browser using DataLab