edit_twitter: Edit Hashtags and Username Mentions

Description Usage Arguments Value Author(s) Examples

View source: R/edit_twitter.R

Description

edit_twitter replaces hashtags and username mentions.

Usage

1
edit_twitter(text, replacement = c("<HASHTAG>", "<@USERNAME>"))

Arguments

text

The text variable.

replacement

Character vector whose first element replaces the hashtags, and second element replaces the username mentions.

Value

Returns a character vector with hashtags and username mentions replaced.

Author(s)

Achilleas Passias

Examples

1
2
3
4
text <- c("#hashtag", "@username")

edit_twitter(text)
edit_twitter(text, replacement = c("", ""))

achilleas-251/txtprocess documentation built on March 30, 2020, 12:43 a.m.