rodham: Hillary Rodham Clinton emails

Description

rodham: Hillary Rodham Clinton emails

Dataset

  • emailsdataset of 29444 emails

Functions

  • search_emails

  • edges_emails

  • get_emails

  • get_xpdf

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## Not run: 
# get emails from internal data set
data("emails")

# build graph
edges <- edges_emails(emails)
g <- igraph::graph.data.frame(edges)
plot(g)

# plot communities
cm <- igraph::walktrap.community(g)
plot(cm, g)

# get extractor to extract content from emails
ext <- get_xpdf()

dir.create("./emails")

# get emails released in august
aug_emails <- get_emails(release = "August", save.dir = "./emails",
                         extractor = ext)

# load txt files
files <- list.files(aug_emails)
content <- lapply(1:length(files), function(x){
   readLines(paste0(aug_emails, "/", files[[x]]))
})

## End(Not run)