root_brands: Find root brands in an account

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

View source: R/account_root_brands.R

Description

Root brands are the brands around which we collect mentions, and determine sentiment. Sentiment is always towards the brand.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
root_brands(x, includeDeleted, includeArchived, short)

## S3 method for class 'data.frame'
root_brands(x, includeDeleted = FALSE, includeArchived = FALSE, short = TRUE)

## S3 method for class 'brandseyer2.account'
root_brands(x, includeDeleted = FALSE, includeArchived = FALSE, short = TRUE)

## S3 method for class 'list'
root_brands(x, includeDeleted = FALSE, includeArchived = FALSE, short = TRUE)

Arguments

x

The object to find root brands for.

includeDeleted

Whether to include deleted root brands. By default, only shows non-deleted brands.

includeArchived

Whether to include archived root brands. By default, only shows non-archived brands.

short

Include only the most import bits of brand information, such as the name and ID.

Value

A tibble containing rows only for the root brands of an account. Otherwise, like the table returned in brands().

Methods (by class)

Author(s)

Constance Neeser

See Also

brands() for returning all brands in an account.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Get root brands for an account
account("TEST01AA") %>%
  root_brands()

# Get root brands from a tibble or data.frame
account(c("TEST01AA", "TEST02AA")) %>%
  brands(short = FALSE) %>%
  root_brands()

# Show fuller root brand information
account("TEST01AA") %>%
  root_brands(short = FALSE)

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