nb_insights_count: Insight Count

Description Usage Arguments Details Value Examples

Description

This function returns the number of sound bites that match the specified topic, the insight type specified with the categories parameter, and any other specified parameters

Usage

1
nb_insights_count(topic_id, categories = c("Likes", "Phrases"), size = 20, ...)

Arguments

topic_id

the topic id

categories

one or more from "Likes", "Dislikes", "PositiveEmotions", "NegativeEmotions", "PositiveBehaviors", "NegativeBehaviors", "Authors", "Domains", "Sources", "Geolocation", "Languages", "Sentiment", "Phrases", "Hashtags", "OrgProducts", "People", and "Things".

size

the number of insight values to return (default is 20)

...

additional parameters. See here: https://nb360.netbase.com/Enterprise/Insight_API/methods/03_insightcount_method

Details

If you exceed your rate limit, it will wait for 80 seconds before trying again, if this fails it will wait for 80 seconds before trying again, if this fails it will wait for 80 seconds before trying again, if this fails it will wait for 80 seconds before trying again, if this fails it will wait for 80 seconds before trying again, if this fails it will wait for 80 seconds before trying again, if this fails it will wait for 80 seconds before trying again, if this fails it will wait for 80 seconds before trying again, if this fails it will wait for 80 seconds before trying again, if this fails it will wait for 80 seconds before trying again...

Value

a list of tibbles, one for each category.

Examples

1
2
3
4
5
## Not run: 
output <- nb_insights_count(topic_id = 1417805, categories = c("Likes", "Dislikes", "Phrases"), size = 20)
output <- nb_insights_count(topic_id = 1417805, size = 20, categories = c("Likes", "Dislikes",  "Sentiment", "Phrases", "Hashtags", "OrgProducts", "People", "Things"))

## End(Not run)

acastroaraujo/netbase documentation built on July 5, 2020, 3:17 p.m.