KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to replace both "st." and "ste." with "st". Seems like the following should work but it does not: require("stringr") county <- c("st. landry", "ste. geneveve", "st. louis") str_replace_all(county, c("st\\.", "ste\\."), "st")
Tags (comma-separated)
Save Edits
Cancel