limpiar_inspect: Inspect every post and URL which contains a pattern

View source: R/limpiar_inspect.R

limpiar_inspectR Documentation

Inspect every post and URL which contains a pattern

Description

Produces a viewable data frame with posts matching a regular expression and their url. Useful for investigating suspected spam posts, or other patterns of interest. Set the name of the title to avoid new frames overwriting old ones.

Usage

limpiar_inspect(
  data,
  pattern,
  text_var = mention_content,
  url_var = mention_url,
  title = "inspect"
)

Arguments

data

Data frame or tibble object

pattern

Pattern you wish to inspect e.g. "link bio"

text_var

Name of the text variable/character vector

url_var

Name of the data frame's URL-column

title

Name of the viewable pane

Examples

df <- data.frame(
text_variable = rbind("check me out", "don't look at me"),
text_url = rbind("www.twitter.com", "www.facebook.com"))
limpiar_inspect(df, "check", text_var = text_variable, url_var = text_url)

jpcompartir/LimpiaR documentation built on April 6, 2024, 5:22 a.m.