sentiment: Create sentiment factors

Description Usage Arguments Details Author(s) Examples

View source: R/sentiment.R

Description

Create representations of sentiment as ordered factors.

Usage

1
sentiment(value)

Arguments

value

The integer value of the sentiment you want to represent.

Details

BrandsEye represents sentiment as ordered factors between -5 and 5. 0 is never used, but is represented here to allow for easy querying.

Sentiment is represents as ordered factors with the class c("sentiment", "ordered", "factor").

Author(s)

Constance Neeser

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 

sentiment(1) < sentiment(2)

## Not run: 

library(dplyr)
account_count("QUIR01BA", "published inthelast month", groupby="sentiment") %>%
  filter(sentiment <= sentiment(-1))

## End(Not run)

brandseye/brandseyer documentation built on May 11, 2018, 4:15 a.m.