fivethirtyeight

An R package that provides access to the code and data sets published by FiveThirtyEight https://github.com/fivethirtyeight/data. Note that while we received guidance from editors at 538, this package is not officially published by 538.

Usage

Example Usage

library(fivethirtyeight)
# Bechdel data set (note that data is lazy loaded so one can also just access `bechdel` without running `data(bechdel)`):data(bechdel)
head(bechdel)
?bechdel
# If using RStudio:View(bechdel)
# To see a list of all data sets:data(package ="fivethirtyeight")
# To see a more detailed list of all data sets, see the package vignette:vignette("fivethirtyeight", package ="fivethirtyeight")

Collaborate

Data Analysis Examples in Vignettes

In many instances, the data sets on the original 538 GitHub repository had the R code used in the analysis. We would love to have these, or any other interesting analyses, in the form of package vignettes. We ask you follow these guidelines as much as possible: