Analytical Process

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

⚠️ 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.

get_sentiments("bing")
get_sentiments("nrc")
get_sentiments("afinn")