nba_finals | R Documentation |
This dataset contains information about the teams who played in the NBA Finals from 1950 - 2022.
nba_finals
A data frame with 73 rows and 9 variables:
The year in which the Finals took place.
The team who won the series.
Number of series wins by the Western Conference Champions.
Number of series wins by the Eastern Conference Champions.
Team that won the Western Conference title and played in the Finals.
Team that won the Eastern Conference title and played in the Finals.
Coach of the Western Conference champions.
Coach of the Eastern Conference champions.
Which conference held home court advantage for the series.
Wikipedia: List of NBA Champions
library(dplyr)
library(ggplot2)
library(tidyr)
# Top 5 Appearing Coaches
nba_finals |>
pivot_longer(
cols = c("western_coach", "eastern_coach"),
names_to = "conference", values_to = "coach"
) |>
count(coach, sort = TRUE) |>
slice_head(n = 5)
# Top 5 Winning Coaches
nba_finals |>
mutate(
winning_coach = case_when(
western_wins == 4 ~ western_coach,
eastern_wins == 4 ~ eastern_coach
)
) |>
count(winning_coach, sort = TRUE) |>
slice_head(n = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.