power: Power Score (Sentiment Analysis)

sentiment_frameR Documentation

Power Score (Sentiment Analysis)

Description

sentiment_frame - Generate a sentiment lookup hash table for use with the xxx.frame argument of various sentiment functions.

Usage

sentiment_frame(positives, negatives, pos.weights = 1, neg.weights = -1)

Arguments

positives

A character vector of positive words.

negatives

A character vector of negative words.

pos.weights

A vector of weights to weight each positive word by. Length must be equal to length of postives or length 1 (if 1 weight will be recycled).

neg.weights

A vector of weights to weight each negative word by. Length must be equal to length of negatives or length 1 (if 1 weight will be recycled).


qdap documentation built on May 31, 2023, 5:20 p.m.

Related to power in qdap...