Skip to contents

Facebook: Sentiment Calculator

Usage

clean_text(text)

Arguments

text

filepath to data

Value

Text that has been cleaned e.g. special characters and certain punctuation removed.

Details

This function pulls the data from your messages folder created by the facebook_message_pull function. The sentiment of the data is then calculated and written to a pdf file which has bar charts and a sentiment table. The sentiments the data pulls are: surprise, disgust, sadness, anticipation, joy, fear, anger, and trust. The data also pulls the positive and negative percentage of the messages as well.

Examples


library(facebookanalysis)

if (FALSE) clean_text(text)