emoji_to_text: Convert emojis to text

Description Usage Arguments Details Value Author(s) Examples

Description

emoji_to_text applies replaces emojis and accents with corresponding english characters/phrases in a vector of strings.

Usage

1
emoji_to_text(vector, accents = FALSE, delete = FALSE)

Arguments

vector

a vector of character strings.

accents

a boolean which is TRUE if user wants to replace accents, and FALSE otherwise.

delete

a boolean which is TRUE if user wants to delete bytes that are not matched to an emoji or accent.

Details

This function identifies emojis and accents within a text string and replaces them with their corresponding english characters/phrases using Emojis and Accents reference dataframes.

Value

a vector of character strings.

Author(s)

Kelly Jamrog <kjamrog@wesleyan.edu>

Jacob Kuruvilla <jkuruvilla@wesleyan.edu>

Kim Pham <spham@wesleyan.edu>

Examples

1
2
3
4
5
6
## Not run: 
test <- c("Hi Röb, whats up 😬")
emoji_to_text(test, accents=TRUE)
#[1] "Hi Rob, whats up (grimacing face)"

## End(Not run)

Rkabacoff/emoji2text documentation built on May 3, 2019, 5:23 p.m.