I realize this may be more of a dplyr thing and outside the scope of your book, so please feel free to close and ignore.
I'm not sure I grok what's happening with the count(book, index = linenumber %/% 100, sentiment) and later the count(method, index = linenumber %/% 80, sentiment) %>% lines in the sentiment analysis chapter. A sentence or so explanation of what this is doing would be welcome!
I realize this may be more of a dplyr thing and outside the scope of your book, so please feel free to close and ignore.
I'm not sure I grok what's happening with the
count(book, index = linenumber %/% 100, sentiment)
and later thecount(method, index = linenumber %/% 80, sentiment) %>%
lines in the sentiment analysis chapter. A sentence or so explanation of what this is doing would be welcome!