Skip to content
/ rodham Public

❗ This is a read-only mirror of the CRAN R package repository. rodham — Fetch Hillary Rodham Clinton's Emails. Homepage: https://github.com/JohnCoene/rodham Report bugs for this package: https://github.com/JohnCoene/rodham/issues

License

Notifications You must be signed in to change notification settings

cran/rodham

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

rodham

benghazi

Fetch and process Hillary Rodham Clinton's personal emails. See site for more details.

Installation

You can install rodham from CRAN or Github with:

# from CRAN
install.packages("rodham")

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

Example

Data

# load emails
data(emails)

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

# plot 
plot(g)

Download contents

See "how-to" vignette for more examples!

ext <- get_xpdf() # get pdf extractor

# get emails related to Benghazi released in December
emails_bengh <- get_emails(release = "Benghazi", extractor = ext)

# load contents
hrc_emails <- load_emails(emails_bengh)

print(hrc_emails)
#> 4366 emails

# get emails content
cont <- get_content(hrc_emails)

# clean emails
cont <- clean_content(cont)

####
# Chart in header
####

# devtools::install_github("JohnCoene/echarts")
library(echarts)
library(dplyr)

get_com(hrc_emails) %>%
  filter(from != "") %>%
  count(from) %>%
  echart(from) %>%
  ecloud(n) %>%
  etitle(text = "Email senders", subtext = "Benghazi release") %>%
  etheme("helianthus")

Resources

About

❗ This is a read-only mirror of the CRAN R package repository. rodham — Fetch Hillary Rodham Clinton's Emails. Homepage: https://github.com/JohnCoene/rodham Report bugs for this package: https://github.com/JohnCoene/rodham/issues

Resources

License

Stars

Watchers

Forks

Packages

No packages published