uncombine: Ungroup a sentiment_by
Object to the Sentence Level
Description
Ungroup a sentiment_by
object, stretching to the element_id
and
sentence_id
levels.
Value
Returns a data.table with grouping variables plus:
- element_id - The id number of the original vector passed to
sentiment
- word_count - Word count
sum
med by grouping variable
- sd - Standard deviation (
sd
) of the sentiment/polarity score by grouping variable
- ave_sentiment - Sentiment/polarity score
mean
average by grouping variable