Description Usage Arguments Value N.B. See Also Examples
Use vader_df() to calculate the valence of multiple texts contained within a vector or column in a dataframe.
1 |
text |
to be analyzed; for vader_df(), the text should be a single vector (e.g. 1 column) |
incl_nt |
defaults to T, indicates whether you wish to incl n't contractions (e.g., can't) in negation analysis |
neu_set |
defaults to T, indicates whether you wish to count neutral words in calculations |
A dataframe containing the valence score for each word; an overall, compound valence score for the text; the weighted percentage of positive, negative, and neutral words in the text; and the frequency of the word "but".
In the examples below, "yesn't" is an internet neologism meaning "no", "maybe yes, maybe no", "didn't", etc.
get_vader
to get vader results for a single text document
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.