readme.md

germanpolls - an R package for German polling data

germanpolls is an R package for scraping Wahlrecht.de, a German website with the most comprehensive collection of polling results.

Install

install.packages("germanpolls")

devtools::install_github("cutterkom/germanpolls")

Usage

library(germanpolls)

polling_data <- germanpolls(region = "de")

Result

You get all elements from XML files in a dataframe.

Available data

Call data for regions with germanpolls(region = "de") for Germany or region = "by" for Bavaria.

You can get polling data for:

You can't get polling data for:

What you get

Caution! old version

You get a dataframe with the following variables on the federal level:

...

Better Polls

Germanpolls is a byproduct of gen-better-polls. At the GEN Hackathon at Süddeutsche Zeitung we were working on a better way to visualize polling data.

To Do



cutterkom/germanpolls documentation built on April 16, 2020, 8:55 p.m.