Description Usage Arguments Value Examples
View source: R/detect_sentiment.R
Detect sentiment in a source text
1 | detect_sentiment(text, language = "en", ...)
|
text |
A character string containing a text to sentiment analyze, or a character vector to perform analysis separately for each element. |
language |
A character string containing a two-letter language code. Currently “en” and “es” are supported. |
... |
Additional arguments passed to |
A data frame
1 2 3 4 5 6 7 8 9 | ## Not run:
# simple example
detect_sentiment("I have never been happier. This is the best day ever.")
txt <-c("I have never been happier. This is the best day ever.",
"I have always been happier. This is the worst day ever.")
detect_sentiment(txt)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.