Description Usage Arguments Value Examples
Remove all punctuation and special characters from the input tweets data
1 | remove_punct(tweets, skip = NULL)
|
tweets |
A vector of tweets |
skip |
Vector of charcters or NULL. The set of characters that do not have to be removed. Default is NULL. If NULL, all characters except alphabets, numbers and space would be removed. |
Vector of tweets without special characters
1 2 3 4 5 6 | tweets <- c(
"Make America Great Again! @DonaldTrump",
"It's rocket-science tier investment~~ #LoveElonMusk"
)
remove_punct(tweets)
remove_punct(tweets, skip = c("'", "@", "#", "-"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.