Introspection using sentiment analysis

Sentiment Analysis in R

Ted Kwartler

Data Dude

qdap's polarity for subsetting corpora

library(qdap)
polarity(text.var, grouping.var = NULL)

comparison cloud polarity workflow

Sentiment Analysis in R

Comparing frequent words in Plutchik's Framework

wheel of emotions

whale

Sentiment Analysis in R

Where's Waldo? Where isn't Waldo?

x <- c("Nicole", "Nick", "Waldo")
grep("Waldo", x)
[1] 3
grepl("Waldo", x)
[1] FALSE FALSE  TRUE
!grepl("Waldo", x)
[1] TRUE  TRUE FALSE
Sentiment Analysis in R

Adding an "or" operator

x <- c("Nicole", "Nick", "Waldo")
grepl("Waldo|Nicole", x)
[1] TRUE FALSE  TRUE
!grepl("Waldo|Nicole", x)
[1] FALSE  TRUE FALSE
Sentiment Analysis in R

Stacked comparisons for polarity mixture

stacked bar

Sentiment Analysis in R

Let's practice!

Sentiment Analysis in R

Preparing Video For Download...