get_compound_score
Calculates a compound sentiment score from text
Arguments
- text,
Input text data as string
Value
A numeric sentiment score of the text,
ranges from -1 for negative
0 for neutral and 1 for positive
Examples
get_compound_score("This is great")
#> [1] 0.625
get_compound_score("This is a neutral sentence")
#> [1] 0.077