handle.handles: Handle handles from a vector

Description Usage Arguments Value

Description

A function to either remove Handles (identified by @ symbol) or extract them (or both) from a vector. These often appear in social media data (Facebook posts, Instagram posts or tweets) and can be quite annoying. You might also want to extract them for downstream analysis of e.g. conversation dynamics.

Usage

1
handle.handles(text.clean, extract = T, remove = T)

Arguments

text.clean

vector containing one or more strings (i.e. length is equal to or greater than 1)

extract

logical, indicating whether to extract the handles

remove

logical, indicating whether to remove the handles

Value

list where the first item is the cleaned text (handles are not removed if remove == F), the second item is a dataset of extracted handles


bvidgen/tc documentation built on May 9, 2019, 2:21 a.m.