Learn R Programming

GmooG (version 0.7)

GermanElection21: Results of the election for the German Bundestag in Autumn 2021

Description

Detailed results by constituency for the German election of 2021 (and for the previous election in 2017)

Usage

data(GermanElection21)

Arguments

Format

A data frame with 16024 observations on the following 9 variables

WkNr

Constituency (Wahlkreis) number

WkName

Constituency name

Land

Bundesland number

Partei

Party

Stimme

First (personal) or second (party) vote

Anzahl

Number of votes in 2021 election

VorpAnzahl

Number of votes in 2017 election

Bundesland

Bundesland name

Region

Region: West, Berlin, East

Details

This dataset and the datasets GermanDemographics and GermanExtraSeats are all used in Chapter 26, "German Election 2021--what happened?"

Examples

Run this code
library(tidyverse)
data(GermanElection21, package="GmooG")
btw1vP <- GermanElection21 %>% count(Partei) %>% arrange(-n) 

Run the code above in your browser using DataLab