polarity: Calculate Polarity from Matrix

Description Usage Arguments Author(s)

Description

Calculate Polarity from Matrix

Usage

1
2
3
4
5
6
7
8
polarity(x, positive, negative)

## S3 method for class 'TermDocumentMatrix'
polarity(x, positive = posterms_GI(),
  negative = negterms_GI())

## S3 method for class 'DocumentTermMatrix'
polarity(x, ...)

Arguments

x

TermDocumentMatrix

positive

character vector specifying positive terms to be used, defaults to posterms_GI

negative

character vector specifying negative terms to be used, defaults tonegterms_GI

...

Additional paramters passed to polarity

Author(s)

Mario Annau


ViennaR/SentimentAnalysis documentation built on May 9, 2019, 9:56 p.m.