Description Usage Arguments Value Methods (by class) Author(s) See Also Examples
View source: R/account_root_brands.R
Root brands are the brands around which we collect mentions, and determine sentiment. Sentiment is always towards the brand.
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)
|
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. |
A tibble containing rows only for the root brands of an account. Otherwise,
like the table returned in brands()
.
data.frame
: Find root brands from a tibble
or data.frame
. The data.frame
should have id
, parent
, and deleted
columns, just as
the tibble returned from brands()
does.
brandseyer2.account
: Returns root brand information from an account object.
list
: Returns root brand information from a list of account objects.
Constance Neeser
brands()
for returning all brands in an account.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.