Closed trinker closed 5 years ago
Misues...proper way:
> with(presidential_debates_2012, sentiment_by(pres_sent2, by = list(person, time)))
person time word_count sd ave_sentiment
1: OBAMA time 1 3599 0.2535006 0.12256892
2: OBAMA time 2 7477 0.2509177 0.11217673
3: OBAMA time 3 7243 0.2441394 0.07975688
4: ROMNEY time 1 4085 0.2525596 0.10151917
5: ROMNEY time 2 7536 0.2205169 0.08791018
6: ROMNEY time 3 8303 0.2623534 0.09968544
7: CROWLEY time 2 1672 0.2181662 0.19455290
8: LEHRER time 1 765 0.2973360 0.15473364
9: QUESTION time 2 583 0.1756778 0.03197751
10: SCHIEFFER time 3 1445 0.2345187 0.08843478
> with(presidential_debates_2012, emotion_by(pres_emo, by = list(person, time)))
person time emotion_type word_count emotion_count sd ave_emotion
1: LEHRER time 1 anger 765 3 0.019164239 0.0039215686
2: LEHRER time 1 anger_negated 765 0 0.000000000 0.0000000000
3: LEHRER time 1 anticipation 765 16 0.049885491 0.0209150327
4: LEHRER time 1 anticipation_negated 765 0 0.000000000 0.0000000000
5: LEHRER time 1 disgust 765 1 0.004845471 0.0013071895
---
156: OBAMA time 3 sadness_negated 7243 4 0.006132821 0.0005522574
157: OBAMA time 3 surprise 7243 38 0.018355134 0.0052464448
158: OBAMA time 3 surprise_negated 7243 6 0.006236082 0.0008283860
159: OBAMA time 3 trust 7243 260 0.119461749 0.0358967279
160: OBAMA time 3 trust_negated 7243 28 0.025254012 0.0038658015