R Dataset / Package vcd / Bundesliga


On this R-data statistics page, you will find information about the Bundesliga data set which pertains to Ergebnisse der Fussball-Bundesliga. The Bundesliga data set is found in the vcd R package. You can load the Bundesliga data set in R by issuing the following command at the console data("Bundesliga"). This will load the data into a variable called Bundesliga. If R says the Bundesliga data set is not found, you can try installing the package by issuing this command install.packages("vcd") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the Bundesliga R data set. The size of this file is about 954,841 bytes.

Ergebnisse der Fussball-Bundesliga


Results from the first German soccer league (1963-2008).




A data frame with 14018 observations and 7 variables.


factor. Name of the home team.


factor. Name of the away team.


number of goals scored by the home team.


number of goals scored by the away team.


round of the game.


year in which the season started.


starting time of the game (in "POSIXct" format).


The data comprises all games in the first German soccer league since its foundation in 1963. The data have been queried online from the official Web page of the DFB and prepared as a data frame in R by Daniel Dekic, Torsten Hothorn, and Achim Zeileis (replacing earlier versions of the data in the package containing only subsets of years).

Each year/season comprises 34 rounds (except 1963, 1964, 1991) so that all 18 teams play twice against each other (switching home court advantage). In 1963/64, there were only 16 teams, hence only 30 rounds. In 1991, after the German unification, there was one season with 20 teams and 38 rounds.


Homepage of the Deutscher Fussball-Bund (DFB, German Football Association): http://www.dfb.de/


Leonhard Knorr-Held (1999), Dynamic rating of sports teams. SFB 386 “Statistical Analysis of Discrete Structures”, Discussion paper 98.

See Also



data("Bundesliga")## number of goals per game poisson distributed?
ngoals1 <- xtabs(~ HomeGoals, data = Bundesliga, subset = Year == 1995)
ngoals2 <- xtabs(~ AwayGoals, data = Bundesliga, subset = Year == 1995)
ngoals3 <- table(apply(subset(Bundesliga, Year == 1995)[,3:4], 1, sum))gf1 <- goodfit(ngoals1)
gf2 <- goodfit(ngoals2)
gf3 <- goodfit(ngoals3)summary(gf1)

Dataset imported from https://www.r-project.org.

Title Authored on Content type
OpenIntro Statistics Dataset - dream August 9, 2020 - 12:25 PM Dataset
OpenIntro Statistics Dataset - winery_cars August 9, 2020 - 2:38 PM Dataset
R Dataset / Package HSAUR / toothpaste March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HSAUR / pottery March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HistData / Guerry March 9, 2018 - 1:06 PM Dataset
Attachment Size
dataset-10770.csv 932.46 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.