An R package to analyze the parliamentary records of the 19th legislative period of the Bundestag, the German parliament.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
409B

  1. library(tidyverse)
  2. source("../scraping/fetch.R")
  3. source("../scraping/parse.R")
  4. source("../scraping/repair.R")
  5. # fetch_all()
  6. read_all() %>% repair() -> res
  7. reden <- res$reden
  8. redner <- res$redner
  9. talks <- res$talks
  10. # first tries
  11. left_join(reden, redner, by=c("redner" = "id")) %>%
  12. group_by(fraktion) %>%
  13. summarize(n = n()) %>%
  14. ggplot(aes(x = fraktion, y = n)) +
  15. geom_bar(stat = "identity")