Gets the 'stats metric' for a given filter

sites_metric(code, filter, file = NULL, save = FALSE,
  truncateAt = NULL)

Arguments

code

An account code

filter

A filter for data

file

An optional file name to save a CSV file to.

save

Set to TRUE if you'd like a dialog file to choose where to save your CSV.

truncateAt

Optional number of results - rest will become "Others". This takes the top sites based on the volume of mentions from the site.

Value

A tibble of your data

Examples

sites_metric("QUIR01BA", "published inthelast week and brand isorchildof 10006")
#> # A tibble: 7 x 7 #> site count engagement netSentiment ots `ifelse(mentionC… netSentimentPer… #> <chr> <int> <int> <int> <int> <dbl> <dbl> #> 1 twitt… 20 5 3 29626 0.645 0.15 #> 2 www.f… 3 0 2 5348 0.0968 0.667 #> 3 www.i… 2 0 2 2 0.0645 1 #> 4 item2… 2 0 0 70000 0.0645 0 #> 5 Khale… 2 0 0 0 0.0645 0 #> 6 www.h… 1 0 0 300 0.0323 0 #> 7 The N… 1 0 0 0 0.0323 0