Bing lexicon with an inner join

Sentiment Analysis in R

Ted Kwartler

Data Dude

Table joins

Join Venn Diagrams

Sentiment Analysis in R

dplyr joins

inner_join(x, y, ...)
left_join(x, y, ...)
right_join(x, y, ...)
full_join(x, y, ...)
semi_join(x, y, ...)
anti_join(x, y, ...)

Declaring the by parameter:

inner_join(x, y, by = "shared_column")

or

inner_join(x, y, by = c("a" = "b"))
Sentiment Analysis in R

Comparing inner and anti joins

inner-join Venn

inner_join(
  text_table,
  subjectivity_lexicon,
  by = "word_column"
)

anti-join venn

anti_join(
  text_table,
  stopwords_table,
  by = "word_column"
)
Sentiment Analysis in R

Starting with positive/negative

 

example tally

Sentiment Analysis in R

Let's practice!

Sentiment Analysis in R

Preparing Video For Download...