Description Usage Arguments Value See Also Examples
Splits string into words (by default at space), looks up affinity score for each word and returns average.
1 2 |
x |
String |
dict |
Dictionary to use: either "afinn111" or "afinn96" |
sep |
Charater string to use as word boundary |
removePunct |
If TRUE, removes punctuation from words |
... |
not used |
A numerical value between -5 and +5. Returns NaN
if none of the words are found in the dictionary.
Other sentiment.functions: sentiment.status
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.