knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

vader

Vader is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media.

Installation

You can install the released version of vader from CRAN with:

install.packages("vader")

Example

N.B. "Yesn't" is an internet neologism meaning "no", "maybe yes, maybe no", "didn't", etc.

library(vader)
get_vader("I yesn't like it")

#doesn't include non-dictionary contractions when calculating negations
get_vader("I yesn't like it", incl_nt = F) 

#doesn't include neutral words in calculations
get_vader("I yesn't like it", neu_set = F) 


krgitcode/vader documentation built on May 12, 2020, 12:58 a.m.