str_remove_reply_mentions: Remove all '@mentions' from the beginning of strings.

View source: R/str_remove_reply_mentions.R

str_remove_reply_mentionsR Documentation

Remove all @mentions from the beginning of strings.

Description

str_remove_reply_mentions - Remove all @mentions from the beginning of strings. This can be useful for cleaning tweets because the texts of replies start with the screen_names of all users further down the reply tree.

Usage

str_remove_reply_mentions(.str)

Arguments

.str

...

Value

str_remove_reply_mentions - returns a ...

Examples

## str_remove_reply_mentions EXAMPLE:

str_remove_reply_mentions(c(
  "@test test!",
  "@test @test test test!"
))

m-pilarski/klartext documentation built on June 16, 2024, 1:35 p.m.