ma_term_sentiment: Determine the lagged sentiment of terms

Description Usage Arguments Value

View source: R/ma-term-sentiment.R

Description

Determine the lagged sentiment of terms

Usage

1
ma_term_sentiment(.data, lexicon = "afinn", lag = 10, statistic = mean)

Arguments

.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

Value

vector with lagged sentiment score of each term in the input vector


jcai849/iNZightTA documentation built on Dec. 2, 2020, 6:59 a.m.