tags: Fetch tags for accounts and mention data

Description Usage Arguments Value Methods (by class) Author(s) See Also Examples

View source: R/tags.R

Description

Fetches tag information, returned as a tibble, for the given account. This can be done for both account information, as well as mentions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'brandseyer2.account'
tags(x, ...)

## S3 method for class 'list'
tags(x, ...)

## S3 method for class 'data.frame'
tags(x, ..., ac = attr(x, "account"), na.rm = TRUE)

tags(x, ...)

Arguments

x

An object to find tag information for, such as an account() or a tibble of mention data.

...

Extra arguments passed to functions.

ac

An optional account object from which to take tag information.

na.rm

Whether to keep mentions that have no tags.

Value

A tibble of tag information. Includes the name, namespace, and description of the tags. Note that topics are stored in the 'topics' namespace.

Methods (by class)

Author(s)

Constance Neeser

See Also

account() to fetch account data.

topics() to see just a list of topics.

mentions() to query mention data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# See what namespaces are in your account
account("TEST01AA") %>%
  tags() %>%
  dplyr::select(namespace) %>%
  table()

# Find topics
account("TEST01AA") %>%
  tags() %>%
  dplyr::filter(namespace == "topic")


# See the tags for multiple accounts at a time.
accounts(c("TEST01AA", "TEST02AA")) %>%
  tags()

# Finding the tags that mentions matched.
account("TEST01AA") %>%
  mentions("published inthelast week") %>%
  tags()

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