get_sentiments("bing")
get_sentiments("nrc")
get_sentiments("afinn")Analytical Process
Week 5 Overview
Overview
Prepare
- Read McLeod - Open Coding in Qual Research
- Learn about “R packages”. (Read only)
- Install the
textdataandsentimentrpackages. See below for details. - Copy
04code along fromshared/Wickedto yourHomefolder.- Here is the QMD file for those working locally.
Materials
- Week 5 Google Drive folder
- McLeod (2024) Open Coding in Qual Research
- TTM Ch 2
- Sentiment analysis code along
Assignments
- HW 4
⚠️ First-time install - one time only
Sentiment dictionaries have to be installed and downloaded before they can be used. These are contained in the textdata package. This only has to be installed once.
Copy this code and paste it into the console then press Enter
install.packages("textdata")
install.packages("sentimentr")Load dictionaries - First time each session
get_sentiments("afinn") and get_sentiments("nrc") pull their data through the textdata package.
This will prompt you to confirm a download the first time they’re called in a session.
