An R package to analyze the parliamentary records of the 19th legislative period of the Bundestag, the German parliament.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

37 linhas
603B

  1. ---
  2. title: "funwithdata"
  3. output: rmarkdown::html_vignette
  4. vignette: >
  5. %\VignetteIndexEntry{funwithdata}
  6. %\VignetteEngine{knitr::rmarkdown}
  7. %\VignetteEncoding{UTF-8}
  8. ---
  9. ```{r, include = FALSE}
  10. knitr::opts_chunk$set(
  11. collapse = TRUE,
  12. comment = "#>"
  13. )
  14. ```
  15. ```r
  16. read_all() %>% repair() -> res
  17. reden <- res$reden
  18. redner <- res$redner
  19. talks <- res$talks
  20. # first tries
  21. left_join(reden, redner, by=c("redner" = "id")) %>%
  22. group_by(fraktion) %>%
  23. summarize(n = n()) %>%
  24. ggplot(aes(x = fraktion, y = n)) +
  25. geom_bar(stat = "identity")
  26. ```
  27. ```{r setup}
  28. library(hateimparlament)
  29. ```