Description Usage Arguments Examples
This function summarises the sentiment calculations and outputs the top scores This can be ordered as positive tweets first or negative tweets first (ascending or descending)
1 2 | sent_summary(sentiment = "positive", df = tweetsDF, n = 3,
meth = "afinn")
|
sentiment |
'positive' or 'negative' currently working |
df |
dataframe containing the tweets |
n |
number of tweets to summarise |
order.desc |
TRUE is default which outputs highest scores i.e. most positive tweets. FALSE outputs the most negative tweets |
1 | sent.summary('positive', n = 6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.