twitter_engagement: Returns a float indicating engagement score for the text

Description Usage Arguments Value See Also Examples

Description

Given input text, returns a probability distribution over the political alignment of the speaker.

Usage

1

Arguments

text

text for analysis

version

for api version

...

additional arguments to passed to request

Value

float engagement score

See Also

sentiment, language

Examples

1
2
3
4
5
6
text <- "I am so proud to stand here today
           as Prime Minister of four nations
           in one United Kingdom."
engagement <- twitter_engagement(text)
cat(sprintf("This text has twitter engagement of %f",
            engagement))

IndicoDataSolutions/IndicoIo-R documentation built on May 7, 2019, 6:37 a.m.