Analytical Process - I

Week 5 Overview

Published

September 20, 2026

Overview

Prepare

  • Read McLeod - Open Coding in Qual Research
  • Learn about “R packages”. (Read only)
  • Install the textdata and sentimentr packages. See below for details.
  • Copy 04 code along from shared/Wicked to your Home folder.
    • Here is the QMD file for those working locally.

Materials

Assignments

  • HW 4: You will do your work directly on the handouts provided. You will turn them in to Amy by 10/5 start of class. You will also submit your analytic memo to Canvas by the same date.

⚠️ 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. So you have to load the textdata package first.

This will prompt you to confirm a download the first time they’re called in a session.

library(textdata)
get_sentiments("bing")
get_sentiments("nrc")
get_sentiments("afinn")