logs_retrosent: Finding retrosends for accounts

Description Usage Arguments Value Methods (by class) Examples

View source: R/account_logs_retrosent.R

Description

logs_retrosent() can be used to find retrosends that have occurred for a particular account() or list of accounts. If you want to specify a date range, use logs() and pipe its results through to logs_retrosent().

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
logs_retrosent(x, ...)

## S3 method for class 'data.frame'
logs_retrosent(x, ...)

## S3 method for class 'character'
logs_retrosent(x, ..., .show.progress = interactive())

## S3 method for class 'brandseyer2.account'
logs_retrosent(x, ...)

## S3 method for class 'list'
logs_retrosent(x, ..., .show.progress = interactive())

Arguments

x

A data frame of logs, or an account object (or list of account objects)

...

Extra arguments

.show.progress

When reading logs, whether to show a progress bar or not. See logs().

Value

A tibble giving retrosend information, such as the crowd, priority and filter used. The requested column is the number of mentions requested to be sent to the crowd, while the sent column is the number actually sent.

Methods (by class)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 

account("TEST01AA") %>%
  logs_retrosent()

account_list() %>%
  logs() %>%
  logs_retrosent()

# Pull date for a particular time range
account("TEST01AA") %>%
  logs(Sys.Date() - lubridate::weeks(1)) %>%
  logs_retrosent()

# Pull data from a particular date up to today.
account("TEST01AA") %>%
  logs(lubridate::ymd("2018/08/01")) %>%
  logs_retrosent()

## End(Not run)

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