Set of functions to find emoticons and emojis in textual data.
With devtools:
devtools::install_github("M3SOulu/EmoticonFindeR")
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)
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.