It looks like the example is loading a lexicon from a local file. Could this be updated so that readers can follow along more easily? I would simply use:
afinn <- tidytext::get_sentiments("afinn")
since tidytext is used elsewhere in this chapter
Thanks for this helpful suggestion: I'm hoping to be able to attend to this and your other issues in May. Apologies for not being able to respond sooner.
It looks like the example is loading a lexicon from a local file. Could this be updated so that readers can follow along more easily? I would simply use:
afinn <- tidytext::get_sentiments("afinn")
sincetidytext
is used elsewhere in this chapter