Gives information grouped by region

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

Arguments

code

The account code to use

filter

The filter for the 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 regions based on the volume of mentions from the site.

Value

A tibble of your data

Examples

regions_metric("QUIR01BA", "published inthelast week and brand isorchildof 10006")
#> # A tibble: 6 x 8 #> id region count engagement netSentiment ots netSentimentPer… percentage #> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 <NA> Unkno… 22 4 6 89016 0.273 0.710 #> 2 SE.26 Stock… 4 0 0 44 0 0.129 #> 3 ZA.11 Weste… 2 1 0 12723 0 0.0645 #> 4 US.NJ New J… 1 0 1 333 1 0.0323 #> 5 US.TX Texas 1 0 0 1606 0 0.0323 #> 6 GR.ES… Attica 1 0 0 1554 0 0.0323