4.1 Recency

Following the textbook’s lead, let us find the most recent data in the Lahman package.

Teams |>
  select(yearID, teamID, franchID, G, W, L, R, RA) |>
  slice_tail(n = 5)
##   yearID teamID franchID   G  W  L   R  RA
## 1   2023    PIT      PIT 162 76 86 692 790
## 2   2023    SDN      SDP 162 82 80 752 648
## 3   2023    SFN      SFG 162 79 83 674 719
## 4   2023    SLN      STL 162 71 91 719 829
## 5   2023    WAS      WSN 162 71 91 700 845