group_mentions_by: Group mentions by shared criteria

Description Usage Arguments Value See Also Examples

View source: R/filter_language.R

Description

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.

Usage

1
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

1
2
3
account("TEST01AA", "TEST02AA") %>%
  filter_mentions("published inthelast week") %>%
  group_mentions_by(published, sentiment)

brandseye/brandseyer2 documentation built on Sept. 5, 2021, 2:15 p.m.