Easy web publishing from R
Write
R Markdown
documents in RStudio.
Share them here on RPubs.
(It’s free, and couldn’t be simpler!)
Get Started
Recently Published
10A Sentiment Analysis with Text Mining with R
In Chapter 2 of Text Mining with R, the authors introduce sentiment analysis.
Your task is to reproduce and extend that example.
Step 1 — Reproduce the Base Example
Obtain the primary example code from Chapter 2.
Create a Quarto (.qmd) file that successfully runs this code.
Include a proper citation to the book and the original example code.
Step 2 — Extend the Analysis
Extend the original example in two ways:
Use a different text corpus of your choosing (e.g., news articles, book reviews, speeches, social media, etc.).
Add at least one additional sentiment lexicon, which may come from:
Another R package, or
A lexicon you locate through external research.
You should clearly explain how the results differ from the original example.
Assignment 4
Infections Database in R