Description Usage Arguments Value Author(s) Examples
To address the ""NOT HAPPY" problem
1 | sentiment_post_negation(df, ID, text, lexicon, negation_words)
|
df |
The original data frame (LexisNexis, Twitter, etc) |
ID |
The name of the variable identifying each document in the original data frame |
text |
The name of the variable containing the texts we want to analyze in the original data frame |
lexicon |
The sentiment database. lexicon = c("affin", "bing", "nrc", "loughran") |
negation_words |
A list of character |
A data_frame where each row represents a document and each column represents a sentiment. If we use "affin" then it returns the sentiment score
Jiacheng He
1 | sentiment_post_negation(document, ID, FULL_TEXT, "nrc", list("no", "not"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.