
Last chance! 50% off unlimited learning
Sale ends in
sentiment_by
Object to the Sentence LevelUngroup a sentiment_by
object, stretching to the element_id
and
sentence_id
levels.
uncombine(x, ...)
A sentiment_by
object.
Ignored.
Returns a data.table with grouping variables plus:
# NOT RUN {
mytext <- c(
'do you like it? But I hate really bad dogs',
'I am the best friend.',
"Do you really like it? I'm not happy"
)
mytext <- get_sentences(mytext)
(x <- sentiment_by(mytext))
uncombine(x)
# }
# NOT RUN {
(y <- with(
presidential_debates_2012,
sentiment_by(
text.var = get_sentences(dialogue),
by = list(person, time)
)
))
uncombine(y)
# }
Run the code above in your browser using DataLab