Description Usage Arguments Value N.B. See Also
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 UNUSUAL n't contractions (e.g., yesn't) in negation analysis |
neu_set |
defaults to T, indicates whether you wish to count neutral words in calculations |
rm_qm |
defaults to T, indicates whether you wish to clean quotation marks from text (setting to F may result in errors) |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.