View source: R/facebook_sentiment_calculator.R
clean_text | R Documentation |
Facebook: Sentiment Calculator
clean_text(text)
text |
filepath to data |
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.
Text that has been cleaned e.g. special characters and certain punctuation removed.
library(facebookanalysis)
## Not run: clean_text(text)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.