Closed JosiahParry closed 7 years ago
Please clarify why the index is created using the quotient of linenumber / 80 in the middle of the 3rd Chapter
linenumber
80
library(tidyr) janeaustensentiment <- tidy_books %>% inner_join(get_sentiments("bing")) %>% count(book, index = linenumber %/% 80, sentiment) %>% spread(sentiment, n, fill = 0) %>% mutate(sentiment = positive - negative)
Awesome! Thank you so much! @juliasilge
Please clarify why the index is created using the quotient of
linenumber
/80
in the middle of the 3rd Chapter