Skip to content

Latest commit

History

History
53 lines (38 loc) 路 1.77 KB

README.md

File metadata and controls

53 lines (38 loc) 路 1.77 KB

Travis-CI Build Status AppVeyor Build Status Coverage Status codecov CRAN_Status_Badge CRAN_DL_Badge

img

rodham

Fetch and process Hillary Rodham Clinton's personal emails.

Installation

You can install rodham from github with:

# from CRAN
install.packages("rodham")

# dev version
devtools::install_github("JohnCoene/rodham")

Example

# fetch emails
data(emails)

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

# plot 
plot(g)

# get email content
ext <- get_xpdf()

# get emails related to Benghazi released in December
emails_bengh <- get_emails(release = "Benghazi", extractor = ext)
files <- list.files(emails_bengh) # list files
content <- lapply(1:length(files), function(x){
    readLines(paste0(emails_bengh, "/", files[[x]]))
})

See vignette for more examples: devtools::build_vignettes()

Project Vault

See other projects at http://johncoene.github.io/projects/