textsentiment_to_emoji: Emoji Function

Description Usage Arguments Value

View source: R/remoodji.R

Description

Detect the word sentiments of a text and replace the with the matching emojis.

Usage

1
textsentiment_to_emoji(text, sentiment_dataframe = NULL)

Arguments

text

string: A text string containing english words

sentiment_dataframe

data frame: A dataframe which contains word and key column which shows the sentiment of each word. Only supports the Happy, Sad, Suprise, Fear and Angry as keys. If no dataframe is given the results of sentiment_df function would be used

Value

string: A string containing only emoji's with no words. The emojis are written in the CLDR short name format.


UBC-MDS/remoodji documentation built on March 30, 2021, 12:02 p.m.