Gives information grouped by city

cities_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 cities based on the volume of mentions from the site.

Value

A tibble of your data

Examples

cities_metric("QUIR01BA", "published inthelast week and brand isorchildof 10006")
#> # A tibble: 6 x 8 #> id city count engagement netSentiment ots netSentimentPer… percentage #> <int> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 NA Unkn… 22 4 6 89016 0.273 0.710 #> 2 2685828 Öste… 4 0 0 44 0 0.129 #> 3 3369157 Cape… 2 1 0 12723 0 0.0645 #> 4 5100506 Lind… 1 0 1 333 1 0.0323 #> 5 4700168 Irvi… 1 0 0 1606 0 0.0323 #> 6 264371 Athe… 1 0 0 1554 0 0.0323