with_mention_order: Order results from fetching or counting mentions

Description Usage Arguments Value See Also Examples

View source: R/filter_language.R

Description

with_mention_order() allows you to specify the order of returned mentions or the order of counted mentions. This does not preclude you from reordering mentions using dplyr::arrange(). This is part of the query() language.

Usage

1
with_mention_order(.account, ..., .envir)

Arguments

.account

An account or query() object.

...

The fields to order by.

.envir

The environment to perform substitutions in.

Value

A query() object.

See Also

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

query() is a way to manually create queries.

Examples

1
2
3
4
account("TEST01AA") %>%
  filter_mentions("published inthelast week") %>%
  group_mentions_by(mentionCount, totalOTS) %>%
  with_mention_order(totalOTS)

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