search_emails: Search Rodham's emails

Description Usage Arguments Details Author(s) Examples

Description

Search Hillary Rodham Clinton's personal emails.

Usage

1
2
search_emails(subject = NULL, to = NULL, from = NULL, start = NULL,
  end = NULL, internal = TRUE)

Arguments

subject

Filter by subject, defaults to NULL(no filter). If internal = TRUE then matches pattern, if internal = FALSE then looks for exact match.

to

Filter by Receiver, defaults to NULL(no filter).

from

Filter by Sender, defaults to NULL(no filter).

start

Filter by date range, defaults to NULL(no filter).

end

Filter by date range, defaults to NULL(no filter).

internal

if TRUE (default) searches the internal data set (see data(emails)), if FALSE fetches the data through the Wall Street journal API. data(emails) is equivalent to internal TRUE

Details

There are a total of 29444 emails ranging from 2009-08-14 to 2014-08-13, please consider leaving internal to TRUE to not hammer the Wall Street Journal's API. internal = TRUE is equivalent to emails.

Author(s)

John Coene jcoenep@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
emails <- search_emails()

# only emails on cuba
emails <- search_emails(subject = "Cuba")

# only emails from Jake Sullivan since 2014
j_s <- search_emails(from = "Jake Sullivan", start = as.Date("2014-01-01"))

## End(Not run)

JohnCoene/rodham documentation built on May 7, 2019, 11:59 a.m.