Description Usage Arguments Value Examples
View source: R/remove_punctuation.R
Uses stringr
's str_replace_all
to remove punctuation.
1 | remove_punctuation(x, punct_pattern = "[^\\w ]|_")
|
x |
A character vector. |
punct_pattern |
Regular expression pattern to match for punctuation. Defaults to |
A character vector with punctuation removed.
1 2 | docs <- c("What are you doing down there, crashy?", "I'm real good at lying to Lois.")
docs <- remove_punctuation(docs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.