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. You can explore all datasets here: https://fivethirtyeight-r.netlify.app/articles/fivethirtyeight.html

Examples

# Example usage: library(fivethirtyeight) head(bechdel)
#> # A tibble: 6 × 15 #> year imdb title test clean_test binary budget domgross intgross code #> <int> <chr> <chr> <chr> <ord> <chr> <int> <dbl> <dbl> <chr> #> 1 2013 tt1711425 21 & … notalk notalk FAIL 1.3 e7 25682380 4.22e7 2013… #> 2 2012 tt1343727 Dredd… ok-di… ok PASS 4.5 e7 13414714 4.09e7 2012… #> 3 2013 tt2024544 12 Ye… notal… notalk FAIL 2 e7 53107035 1.59e8 2013… #> 4 2013 tt1272878 2 Guns notalk notalk FAIL 6.1 e7 75612460 1.32e8 2013… #> 5 2013 tt0453562 42 men men FAIL 4 e7 95020213 9.50e7 2013… #> 6 2013 tt1335975 47 Ro… men men FAIL 2.25e8 38362475 1.46e8 2013… #> # … with 5 more variables: budget_2013 <int>, domgross_2013 <dbl>, #> # intgross_2013 <dbl>, period_code <int>, decade_code <int>
# All information about any data set can be found in the help file: ?bechdel # To view a list of all data sets: data(package = "fivethirtyeight")