to_count_filter: Converts a query to a vector of filters

Description Usage Arguments Value See Also Examples

View source: R/filter_count_filter.R

Description

to_count_filter() and to_mention_filter() converts a query() to a vector of filters appropriate for either counting or fetching mentions. An account code is specified to choose a filter for a specific account. Each filter is required to perform all of the count operations or to fetch all of the queried data.

Usage

1

Arguments

query

A query() object.

code

The account we want filters for.

Value

A vector of characters. Returns NULL if there are no brands.

See Also

Other query conversion functions: to_mention_filter()

Examples

1
2
3
account("TEST01AA") %>%
  filter_mentions("published inthelast week") %>%
  to_count_filter("TEST01AA")

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