group_mentions_by() allows you to specify how to group mentions when counting them, such as by day, sentiment, etc. This is part of the query() language.

group_mentions_by(.account, ..., .envir)

Arguments

.account

An account or query() object.

...

A list of fields to group by.

.envir

An optional environment to perform substitutions in.

Value

A query() object.

See also

Other verbs for the query language: group_mentions_by(), compare_mentions(), with_mention_fields(), with_mention_order(), with_account().

query() is a way to manually create queries.

Examples

account("TEST01AA", "TEST02AA") %>% filter_mentions("published inthelast week") %>% group_mentions_by(published, sentiment)
#> Warning: The following accounts are not V4: TEST02AA. Ignoring them.
#> BrandsEye Query #> accounts: TEST01AA #> brands: TEST01AA:1[Your Brand Here], TEST01AA:2[Sibling Brand] #> timezones: Africa/Johannesburg #> filter: published inthelast week #> grouping: published, sentiment