README.md

R-CMD-check Coverage Status

Emotion FindeR

Set of functions to find emoticons and emojis in textual data.

Installation

With devtools:

devtools::install_github("M3SOulu/EmoticonFindeR")

Example Usage

The package contains individual functions to extract emoticons, Unicode emojis and Slack emojis from character strings.

FindEmoticons(text)
FindUnicodeEmojis(text)
FindSlackEmojis(text)

They output a data.table object and the three function can be run at once using the EmoticonsAndEmojis function. This once takes as input a table where one of the column contains the character string to look for emoticons. The package also contain a function to extract the text preceding and following each identified emoticon or emoji:

emoticons <- EmoticonsAndEmojis(data, text.col="text")
TextBeforeAfter(emoticons)

Acknowledgement

The list of emojis included in the package come from a dataset from Kelly Garrett, based on the Unicode standard: https://data.world/kgarrett/emojis



M3SOulu/EmoticonFindeR documentation built on June 24, 2022, 4:56 p.m.