Description Usage Arguments Value
View source: R/ma-term-sentiment.R
Determine the lagged sentiment of terms
1 | ma_term_sentiment(.data, lexicon = "afinn", lag = 10, statistic = mean)
|
.data |
vector of terms |
lexicon |
sentiment lexicon to use, based on the corpus provided by tidytext |
lag |
how many (inclusive) terms to compute statistic over |
statistic |
base statistic used to summarise the data, capable of taking an na.rm argument |
vector with lagged sentiment score of each term in the input vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.