![]() ![]() Put each part of a pipe on a new line, which is useful when working with To make code easier to read, people often Since this is already sorted by game, these are the first 6 rowsįrom a week 1 game, ATL MIN. Head says to show the first few rows (the “head” of theĭata). ![]() Lists the description of what happened on the play, and You can similarly take a glimpse at your data:ĭata %>% select ( posteam, defteam, desc, rush, pass ) %>% head ( ) #> ── nflverse play by play data ────────────────────────────────────────────────── #> ℹ Data updated: 11:19:31 UTC #> # A tibble: 6 × 5 #> posteam defteam desc rush pass #> #> 1 NA NA GAME 0 0 #> 2 ATL MIN 5-D.Bailey kicks 65 yards from MIN 35 to end zone… 0 0 #> 3 ATL MIN (15:00) 2-M.Ryan sacked at ATL 17 for -8 yards (5… 0 1 #> 4 ATL MIN (14:20) 24-D.Freeman right tackle to ATL 21 for 4… 1 0 #> 5 ATL MIN (13:41) (Shotgun) 2-M.Ryan scrambles left end to … 0 1 #> 6 ATL MIN (12:59) 5-M.Bosher punt is BLOCKED by 50-E.Wilson… 0 0Ī couple things. (remember from above that there are 372 columns!). Only the first 10 columns, otherwise the list is extremely long In the above, I’ve added in the, which selects #> - attr(*, "nflverse_timestamp")= POSIXct, format: " 11:19:31" #> - attr(*, "nflverse_type")= chr "play by play data" #> - attr(*, "nflfastR_version")=Classes 'package_version', 'numeric_version' hidden list of 1 #>. #> $ posteam_type: chr NA "away" "away" "away". #> $ season_type : chr "REG" "REG" "REG" "REG". ![]() #> $ away_team : chr "ATL" "ATL" "ATL" "ATL". #> $ home_team : chr "MIN" "MIN" "MIN" "MIN". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |