nb_metric_values: Metric Values

Description Usage Arguments Details Value Examples

Description

This function returns one or more metric values for sound bites matching the specified topic, depending on the time argument.

Usage

1
2
3
4
5
6
7
nb_metric_values(
  topic_id,
  metricSeries = c("TotalBuzz", "TotalBuzzPost", "PositiveSentiment",
    "NegativeSentiment"),
  time = c("All", "Month", "Week", "Day", "Hour", "QuarterHour", "Minute"),
  ...
)

Arguments

topic_id

the topic id

metricSeries

one of "TotalBuzz", "TotalBuzzPost", "TotalReplies", "TotalReposts", "OriginalPosts", "Impressions", "PositiveSentiment", "NegativeSentiment", "NeutralSentiment", "NetSentiment", "Passion", "UniqueAuthor", "StrongEmotion", "WeakEmotion", "EngagementDislikes", "EngagementLikes", "EngagementComments", "EngagementShares", "EngagementTotal", "EngagementRatio", and "EngagementViews"

time

one of "All", "Month", "Week", "Day", "Hour", "QuarterHour", "Minute"

...

additional arguments. See here: https://nb360.netbase.com/Enterprise/Insight_API/methods/04_metricvalues_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...

Value

a tibble

Examples

1
2
3
4
5
6
## Not run: 
output <- nb_metric_values(topic_id = 1417805, time = "Month", metricSeries = "Impressions")
output <- nb_metric_values(topic_id = 1417805, time = "Day", metricSeries = "TotalBuzz", genders = "Female")
output <- nb_metric_values(topic_id = 1423897, time = "Week", metricSeries = c("TotalBuzz", "TotalBuzzPost", "TotalReplies"))

## End(Not run)

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