fivethirtyeight: fivethirtyeight: Data and Code Behind the Stories and...

Description Examples

Description

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

1
2
3
4
5
6
7
8
9
# Example usage:
library(fivethirtyeight)
head(bechdel)

# 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")

Example output

  year      imdb            title            test clean_test binary    budget
1 2013 tt1711425        21 & Over          notalk     notalk   FAIL  13000000
2 2012 tt1343727         Dredd 3D     ok-disagree         ok   PASS  45000000
3 2013 tt2024544 12 Years a Slave notalk-disagree     notalk   FAIL  20000000
4 2013 tt1272878           2 Guns          notalk     notalk   FAIL  61000000
5 2013 tt0453562               42             men        men   FAIL  40000000
6 2013 tt1335975         47 Ronin             men        men   FAIL 225000000
  domgross  intgross     code budget_2013 domgross_2013 intgross_2013
1 25682380  42195766 2013FAIL    13000000      25682380      42195766
2 13414714  40868994 2012PASS    45658735      13611086      41467257
3 53107035 158607035 2013FAIL    20000000      53107035     158607035
4 75612460 132493015 2013FAIL    61000000      75612460     132493015
5 95020213  95020213 2013FAIL    40000000      95020213      95020213
6 38362475 145803842 2013FAIL   225000000      38362475     145803842
  period_code decade_code
1           1           1
2           1           1
3           1           1
4           1           1
5           1           1
6           1           1
bechdel            package:fivethirtyeight             R Documentation

_T_h_e _D_o_l_l_a_r-_A_n_d-_C_e_n_t_s _C_a_s_e _A_g_a_i_n_s_t _H_o_l_l_y_w_o_o_d'_s _E_x_c_l_u_s_i_o_n _o_f _W_o_m_e_n

_D_e_s_c_r_i_p_t_i_o_n:

     The raw data behind the story "The Dollar-And-Cents Case Against
     Hollywood's Exclusion of Women" <URL:
     https://fivethirtyeight.com/features/the-dollar-and-cents-case-against-hollywoods-exclusion-of-women/>.

_U_s_a_g_e:

     bechdel
     
_F_o_r_m_a_t:

     A data frame with 1794 rows representing movies and 15 variables:

     year Year of release

     imdb Text to construct IMDB url. Ex: <URL:
          http://www.imdb.com/title/tt1711425>

     title Movie test

     test bechdel test result (detailed, with discrepancies indicated)

     clean_test bechdel test result (detailed): 'ok' = passes test,
          'dubious', 'men' = women only talk about men, 'notalk' =
          women don't talk to each other, 'nowomen' = fewer than two
          women

     binary Bechdel Test PASS vs FAIL binary

     budget Film budget

     domgross Domestic (US) gross

     intgross Total International (i.e., worldwide) gross

     code Bechdel Code

     budget_2013 Budget in 2013 inflation adjusted dollars

     domgross_2013 Domestic gross (US) in 2013 inflation adjusted
          dollars

     intgross_2013 Total International (i.e., worldwide) gross in 2013
          inflation adjusted dollars

     period_code

     decade_code

_D_e_t_a_i_l_s:

     A vignette of an analysis of this dataset using the 'tidyverse'
     can be found on CRAN or by running: 'vignette("bechdel", package =
     "fivethirtyeight")'

_S_o_u_r_c_e:

     <URL: www.bechdeltest.com> and <URL: www.the-numbers.com>. The
     original data can be found at <URL:
     https://github.com/fivethirtyeight/data/tree/master/bechdel>.


Data sets in package 'fivethirtyeight':

US_births_1994_2003     Some People Are Too Superstitious To Have A
                        Baby On Friday The 13th
US_births_2000_2014     Some People Are Too Superstitious To Have A
                        Baby On Friday The 13th
ahca_polls              American Health Care Act Polls
airline_safety          Should Travelers Avoid Flying Airlines That
                        Have Had Crashes in the Past?
antiquities_act         Trump Might Be The First President To Scrap A
                        National Monument
avengers                Joining The Avengers Is As Deadly As Jumping
                        Off A Four-Story Building
bachelorette            Bachelorette / Bachelor
bad_drivers             Dear Mona, Which State Has The Worst Drivers?
bechdel                 The Dollar-And-Cents Case Against Hollywood's
                        Exclusion of Women
biopics                 'Straight Outta Compton' Is The Rare Biopic Not
                        About White Dudes
bob_ross                A Statistical Analysis of the Work of Bob Ross
cand_events_20150114    Looking For Clues: Who Is Going To Run For
                        President In 2016?
cand_events_20150130    Who Will Run For President: Romney Is Out
cand_state_20150114     Looking For Clues: Who Is Going To Run For
                        President In 2016?
cand_state_20150130     Who Will Run For President: Romney Is Out
candy_rankings          Candy Power Ranking
chess_transfers         Chess Transfers
classic_rock_raw_data   Why Classic Rock Isn't What It Used To Be
classic_rock_song_list
                        Why Classic Rock Isn't What It Used To Be
college_all_ages        The Economic Guide To Picking A College Major
college_grad_students   The Economic Guide To Picking A College Major
college_recent_grads    The Economic Guide To Picking A College Major
comic_characters        Comic Books Are Still Made By Men, For Men And
                        About Men
comma_survey            Elitist, Superfluous, Or Popular? We Polled
                        Americans on the Oxford Comma
congress_age            Both Republicans And Democrats Have an Age
                        Problem
cousin_marriage         How Many Americans Are Married To Their
                        Cousins?
daily_show_guests       Every Guest Jon Stewart Ever Had On 'The Daily
                        Show'
democratic_bench        Some Democrats Who Could Step Up If Hillary
                        Isn't Ready For Hillary
drinks                  Dear Mona Followup: Where Do People Drink The
                        Most Beer, Wine And Spirits?
drug_use                How Baby Boomers Get High
elo_blatter             Blatter's Reign At FIFA Hasn't Helped Soccer's
                        Poor
endorsements            Pols And Polls Say The Same Thing: Jeb Bush Is
                        A Weak Front-Runner
fandango                Be Suspicious Of Online Movie Ratings,
                        Especially Fandango's
fifa_audience           How To Break FIFA
flying                  41 Percent Of Fliers Think You're Rude If You
                        Recline Your Seat
food_world_cup          The FiveThirtyEight International Food
                        Association's 2014 World Cup
generic_polllist        Congress Generic Ballot Polls
generic_topline         Congress Generic Ballot Polls
google_trends           The Media Really Started Paying Attention to
                        Puerto Rico When Trump Did
goose                   The Save Ruined Relief Pitching. The Goose Egg
                        Can Fix It.
hate_crimes             Higher Rates Of Hate Crimes Are Tied To Income
                        Inequality
hiphop_cand_lyrics      Hip-Hop Is Turning On Donald Trump
hist_ncaa_bball_casts   The NCAA Bracket: Checking Our Work
hist_senate_preds       How The FiveThirtyEight Senate Forecast Model
                        Works
librarians              Where Are America's Librarians?
love_actually_adj       The Definitive Analysis Of 'Love Actually,' The
                        Greatest Christmas Movie Of Our Time
love_actually_appearance
                        The Definitive Analysis Of 'Love Actually,' The
                        Greatest Christmas Movie Of Our Time
mad_men                 "Mad Men" Is Ending. What's Next For The Cast?
male_flight_attend      Dear Mona, How Many Flight Attendants Are Men?
mayweather_mcgregor_tweets
                        Mayweather Vs McGregor Tweets
mediacloud_hurricanes   The Media Really Started Paying Attention to
                        Puerto Rico When Trump Did
mediacloud_online_news
                        The Media Really Started Paying Attention to
                        Puerto Rico When Trump Did
mediacloud_states       The Media Really Started Paying Attention to
                        Puerto Rico When Trump Did
mediacloud_trump        The Media Really Started Paying Attention to
                        Puerto Rico When Trump Did
mlb_as_play_talent      The Best MLB All-Star Teams Ever
mlb_as_team_talent      The Best MLB All-Star Teams Ever
mlb_elo                 MLB Elo
murder_2015_final       A Handful Of Cities Are Driving 2016's Rise In
                        Murder
murder_2016_prelim      A Handful Of Cities Are Driving 2016's Rise In
                        Murder
nba_carmelo             The Complete History Of The NBA 2017-18 NBA
                        Predictions
nba_draft_2015          Projecting The Top 50 Players In The 2015 NBA
                        Draft Class
nba_tattoos             Accurately Counting NBA Tattoos Isn't Easy,
                        Even If You're Up Close
nfl_elo                 The Complete History Of The NFL 2017 NFL
                        Predictions
nfl_fandom_google       How Every NFL Team<U+2019>s Fans Lean Politically
nfl_fandom_surveymonkey
                        How Every NFL Team<U+2019>s Fans Lean Politically
nfl_fav_team            The Rams Are Dead To Me, So I Answered 3,352
                        Questions To Find A New NFL Team
nfl_suspensions         The NFL's Uneven History Of Punishing Domestic
                        Violence
nfltix_div_avgprice     Who Goes To Meaningless NFL Games And Why?
nfltix_usa_avg          Who Goes To Meaningless NFL Games And Why?
nflwr_aging_curve       The Football Hall Of Fame Has A Receiver
                        Problem
nflwr_hist              The Football Hall Of Fame Has A Receiver
                        Problem
nutrition_pvalues       You Can't Trust What You Read About Nutrition
police_deaths           The Dallas Shooting Was Among The Deadliest For
                        Police In U.S. History
police_killings         Where Police Have Killed Americans In 2015
police_locals           Most Police Don't Live In The Cities They Serve
pres_2016_trail         The Last 10 Weeks Of 2016 Campaign Stops In One
                        Handy Gif
pres_commencement       Sitting Presidents Give Way More Commencement
                        Speeches Than They Used To
pulitzer                Do Pulitzers Help Newspapers Keep Readers?
ratings                 An Inconvenient Sequel
riddler_castles         Can You Rule Riddler Nation?
riddler_castles2        The Battle For Riddler Nation, Round 2
riddler_pick_lowest     Pick A Number, Any Number
san_andreas             The Rock Isn't Alone: Lots Of People Are
                        Worried About 'The Big One'
sandy_311               The (Very) Long Tail Of Hurricane Recovery
senate_polls            Early Senate Polls Have Plenty to Tell Us About
                        November
senators                Senator Dataset
spi_global_rankings     Current SPI ratings and rankings for men's club
                        teams
spi_matches             Match-by-match SPI ratings and forecasts back
                        to 2016
steak_survey            How Americans Like Their Steak
tarantino               A Complete Catalog Of Every Time Someone Cursed
                        Or Bled Out In A Quentin Tarantino Movie
tennis_events_time      Why Some Tennis Matches Take Forever
tennis_players_time     Why Some Tennis Matches Take Forever
tennis_serve_time       Why Some Tennis Matches Take Forever
tenth_circuit           For A Trump Nominee, Neil Gorsuch<U+2019>s Record Is
                        Surprisingly Moderate On Immigration
trump_approval_poll     How Popular is Donald Trump
trump_approval_trend    How Popular is Donald Trump
trump_news              How Trump Hacked The Media
trump_twitter           The World's Favorite Donald Trump Tweets
trumpworld_issues       What the World Thinks of Trump
trumpworld_polls        What the World Thinks of Trump
tv_hurricanes           The Media Really Started Paying Attention to
                        Puerto Rico When Trump Did
tv_hurricanes_by_network
                        The Media Really Started Paying Attention to
                        Puerto Rico When Trump Did
tv_states               The Media Really Started Paying Attention to
                        Puerto Rico When Trump Did
twitter_presidents      The Worst Tweeter in Politics Isn't Trump
undefeated              Mayweather Is Defined By The Zero Next To His
                        Name
unisex_names            The Most Common Unisex Names In America: Is
                        Yours One Of Them?
weather_check           Where People Go To Check The Weather

fivethirtyeight documentation built on Oct. 7, 2021, 5:09 p.m.