![]() ![]() # $ desc : chr "15-E.Pineiro kicks 65 yards from CHI 35 to end zone, Touchback." "(15:00) 33-A.Jones left tackle to GB 25 for no gain (58-R.Smith)." "(14:33) 12-A.Rodgers pass short left to 33-A.Jones to GB 25 for no gain (58-R.Smith)." "(13:45) (Shotgun) 12-A.Rodgers sacked at GB 15 for -10 yards (95-R.Robertson-Harris). # $ side_of_field : chr "CHI" "GB" "GB" "GB". # $ defteam : chr "CHI" "CHI" "CHI" "CHI". # $ posteam_type : chr "away" "away" "away" "away". # $ home_team : chr "CHI" "CHI" "CHI" "CHI". # total_home_raw_air_wpa, total_away_raw_air_wpa, … str(pbp) # tibble (S3: tbl_df/tbl/ame) # total_home_comp_yac_wpa, total_away_comp_yac_wpa , # total_home_comp_air_wpa, total_away_comp_air_wpa , # yac_wpa, comp_air_wpa, comp_yac_wpa , # total_home_pass_wpa, total_away_pass_wpa, air_wpa , # away_wp_post, total_home_rush_wpa, total_away_rush_wpa , # def_wp, home_wp, away_wp, wpa, home_wp_post , # total_home_raw_yac_epa, total_away_raw_yac_epa, wp , # total_home_raw_air_epa, total_away_raw_air_epa , # total_home_comp_yac_epa, total_away_comp_yac_epa , ![]() # total_home_comp_air_epa, total_away_comp_air_epa , # yac_epa, comp_air_epa, comp_yac_epa , # total_home_pass_epa, total_away_pass_epa, air_epa , # total_home_rush_epa, total_away_rush_epa , # epa, total_home_epa, total_away_epa , # extra_point_prob, two_point_conversion_prob, ep , # opp_td_prob, fg_prob, safety_prob, td_prob , # no_score_prob, opp_fg_prob, opp_safety_prob , # defteam_score_post, score_differential_post , # defteam_score, score_differential, posteam_score_post , # total_home_score, total_away_score, posteam_score , ![]() # posteam_timeouts_remaining, defteam_timeouts_remaining , # home_timeouts_remaining, away_timeouts_remaining , ![]() # kick_distance, extra_point_result, two_point_conv_result , # run_location, run_gap, field_goal_result , # pass_location, air_yards, yards_after_catch , # qb_kneel, qb_spike, qb_scramble, pass_length , # yards_gained, shotgun, no_huddle, qb_dropback , # yrdln, ydstogo, ydsnet, desc, play_type , # drive, sp, qtr, down, goal_to_go, time , # game_seconds_remaining, game_half, quarter_end , # quarter_seconds_remaining, half_seconds_remaining , # … with 298 more variables: yardline_100, game_date , # play_id game_id home_team away_team posteam posteam_type defteam side_of_field Next, we’ll at the strucutre, so that we can get a better understanding of the variables used. Here, we will look at the first 5 rows of the data set to see what we’re working with. # set_names # The following object is masked from 'package:tidyr': # Attaching package: 'magrittr' # The following object is masked from 'package:purrr': # x dplyr::lag() masks stats::lag() library(nflfastR) # Loading required package: nflscrapR # Loading required package: nnet # Loading required package: magrittr # # x dplyr::filter() masks stats::filter() Here, I clear my workspace, load some useful packages, and read in the data set. I hope to come to a conclusion at the end that is useful and applicable for a wide variety of people. The goal of this project is to learn something and gain interesting insights that would not have been possible without data. In this project, I will be exploring, visualizing, analyzing, and modeling 2019 NFL play by play data that is publicly available online. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |