ff_scores <- ff_scores %>%
mutate(winner_rd_1 = case_when(
((playoffs == 1) & (year == 2014) & (week != champ_week) & (team_1 %in% c("CARLEN", "ANDREW")) & (team_2 %in% c("CARLEN", "ANDREW"))) ~ 1,
((playoffs == 1) & (year == 2014) & (week != champ_week) & (team_1 %in% c("STEVE", "MATT")) & (team_2 %in% c("STEVE", "MATT"))) ~ 1,
((playoffs == 1) & (year == 2015) & (week != champ_week) & (team_1 %in% c("KYLE", "ANDREW")) & (team_2 %in% c("KYLE", "ANDREW"))) ~ 1,
((playoffs == 1) & (year == 2015) & (week != champ_week) & (team_1 %in% c("SAM", "STEVE")) & (team_2 %in% c("SAM", "STEVE"))) ~ 1,
((playoffs == 1) & (year == 2016) & (week != champ_week) & (team_1 %in% c("NICK", "CHRIS")) & (team_2 %in% c("NICK", "CHRIS"))) ~ 1,
((playoffs == 1) & (year == 2016) & (week != champ_week) & (team_1 %in% c("MATT", "ANDREW")) & (team_2 %in% c("MATT", "ANDREW"))) ~ 1,
((playoffs == 1) & (year == 2017) & (week != champ_week) & (team_1 %in% c("CARLEN", "DYLAN")) & (team_2 %in% c("CARLEN", "DYLAN"))) ~ 1,
((playoffs == 1) & (year == 2017) & (week != champ_week) & (team_1 %in% c("STEVE", "MATT")) & (team_2 %in% c("STEVE", "MATT"))) ~ 1,
((playoffs == 1) & (year == 2018) & (week != champ_week) & (team_1 %in% c("CHRIS", "KYLE")) & (team_2 %in% c("CHRIS", "KYLE"))) ~ 1,
((playoffs == 1) & (year == 2018) & (week != champ_week) & (team_1 %in% c("MATT", "NATHAN")) & (team_2 %in% c("MATT", "NATHAN"))) ~ 1,
((playoffs == 1) & (year == 2019) & (week != champ_week) & (team_1 %in% c("CARLEN", "STEVE")) & (team_2 %in% c("CARLEN", "STEVE"))) ~ 1,
((playoffs == 1) & (year == 2019) & (week != champ_week) & (team_1 %in% c("MATT", "NICK")) & (team_2 %in% c("MATT", "NICK"))) ~ 1,
((playoffs == 1) & (year == 2020) & (week != champ_week) & (team_1 %in% c("CHRIS", "ANDREW")) & (team_2 %in% c("CHRIS", "ANDREW"))) ~ 1,
((playoffs == 1) & (year == 2020) & (week != champ_week) & (team_1 %in% c("KYLE", "NICK")) & (team_2 %in% c("KYLE", "NICK"))) ~ 1,
((playoffs == 1) & (year == 2021) & (week != champ_week) & (team_1 %in% c("CHRIS", "ANDREW")) & (team_2 %in% c("CHRIS", "ANDREW"))) ~ 1,
((playoffs == 1) & (year == 2021) & (week != champ_week) & (team_1 %in% c("STEVE", "NICK")) & (team_2 %in% c("STEVE", "NICK"))) ~ 1,
)) %>%
mutate(loser_rd_1 = case_when(
((playoffs == 1) & (year == 2014) & (week != champ_week) & (team_1 %in% c("KYLE", "CHRIS")) & (team_2 %in% c("KYLE", "CHRIS"))) ~ 1,
((playoffs == 1) & (year == 2014) & (week != champ_week) & (team_1 %in% c("NATHAN", "DREW")) & (team_2 %in% c("NATHAN", "DREW"))) ~ 1,
((playoffs == 1) & (year == 2015) & (week != champ_week) & (team_1 %in% c("DYLAN", "CHRIS")) & (team_2 %in% c("DYLAN", "CHRIS"))) ~ 1,
((playoffs == 1) & (year == 2015) & (week != champ_week) & (team_1 %in% c("NICK", "MATT")) & (team_2 %in% c("NICK", "MATT"))) ~ 1,
((playoffs == 1) & (year == 2015) & (week != champ_week) & (team_1 %in% c("NATHAN", "CARLEN")) & (team_2 %in% c("NATHAN", "CARLEN"))) ~ 1,
((playoffs == 1) & (year == 2016) & (week != champ_week) & (team_1 %in% c("STEVE", "DYLAN")) & (team_2 %in% c("STEVE", "DYLAN"))) ~ 1,
((playoffs == 1) & (year == 2016) & (week != champ_week) & (team_1 %in% c("CARLEN", "KYLE")) & (team_2 %in% c("CARLEN", "KYLE"))) ~ 1,
((playoffs == 1) & (year == 2016) & (week != champ_week) & (team_1 %in% c("NATHAN", "SAM")) & (team_2 %in% c("NATHAN", "SAM"))) ~ 1,
((playoffs == 1) & (year == 2017) & (week != champ_week) & (team_1 %in% c("ANDREW", "CHRIS")) & (team_2 %in% c("ANDREW", "CHRIS"))) ~ 1,
((playoffs == 1) & (year == 2017) & (week != champ_week) & (team_1 %in% c("KYLE", "NATHAN")) & (team_2 %in% c("KYLE", "NATHAN"))) ~ 1,
((playoffs == 1) & (year == 2017) & (week != champ_week) & (team_1 %in% c("NICK", "SAM")) & (team_2 %in% c("NICK", "SAM"))) ~ 1,
((playoffs == 1) & (year == 2018) & (week != champ_week) & (team_1 %in% c("ANDREW", "CARLEN")) & (team_2 %in% c("ANDREW", "CARLEN"))) ~ 1,
((playoffs == 1) & (year == 2018) & (week != champ_week) & (team_1 %in% c("DYLAN", "NICK")) & (team_2 %in% c("DYLAN", "NICK"))) ~ 1,
((playoffs == 1) & (year == 2019) & (week != champ_week) & (team_1 %in% c("CHRIS", "NATHAN")) & (team_2 %in% c("CHRIS", "NATHAN"))) ~ 1,
((playoffs == 1) & (year == 2019) & (week != champ_week) & (team_1 %in% c("SAM", "DYLAN")) & (team_2 %in% c("SAM", "DYLAN"))) ~ 1,
((playoffs == 1) & (year == 2019) & (week != champ_week) & (team_1 %in% c("KYLE", "ANDREW")) & (team_2 %in% c("KYLE", "ANDREW"))) ~ 1,
((playoffs == 1) & (year == 2020) & (week != champ_week) & (team_1 %in% c("SAM", "STEVE")) & (team_2 %in% c("SAM", "STEVE"))) ~ 1,
((playoffs == 1) & (year == 2020) & (week != champ_week) & (team_1 %in% c("NATHAN", "DYLAN")) & (team_2 %in% c("NATHAN", "DYLAN"))) ~ 1,
((playoffs == 1) & (year == 2020) & (week != champ_week) & (team_1 %in% c("MATT", "CARLEN")) & (team_2 %in% c("MATT", "CARLEN"))) ~ 1,
((playoffs == 1) & (year == 2021) & (week != champ_week) & (team_1 %in% c("SAM", "KYLE")) & (team_2 %in% c("SAM", "KYLE"))) ~ 1,
((playoffs == 1) & (year == 2021) & (week != champ_week) & (team_1 %in% c("JASON", "NOAH")) & (team_2 %in% c("JASON", "NOAH"))) ~ 1,
((playoffs == 1) & (year == 2021) & (week != champ_week) & (team_1 %in% c("DYLAN", "MATT")) & (team_2 %in% c("DYLAN", "MATT"))) ~ 1,
)) %>%
mutate(winner_rd_2 = case_when(
((playoffs == 1) & (year == 2018) & (week != champ_week) & (team_1 %in% c("CHRIS", "SAM")) & (team_2 %in% c("CHRIS", "SAM"))) ~ 1,
((playoffs == 1) & (year == 2018) & (week != champ_week) & (team_1 %in% c("NATHAN", "STEVE")) & (team_2 %in% c("NATHAN", "STEVE"))) ~ 1,
((playoffs == 1) & (year == 2018) & (week != champ_week) & (team_1 %in% c("MATT", "KYLE")) & (team_2 %in% c("MATT", "KYLE"))) ~ 1,
)) %>%
mutate(loser_rd_2 = case_when(
((playoffs == 1) & (year == 2018) & (week != champ_week) & (team_1 %in% c("DYLAN", "CARLEN")) & (team_2 %in% c("DYLAN", "CARLEN"))) ~ 1,
((playoffs == 1) & (year == 2018) & (week != champ_week) & (team_1 %in% c("NICK", "ANDREW")) & (team_2 %in% c("NICK", "ANDREW"))) ~ 1,
)) %>%
mutate(match_34 = case_when(
((week == champ_week) & (year == 2014) & (team_1 %in% c("CARLEN", "STEVE")) & (team_2 %in% c("CARLEN", "STEVE"))) ~ 1,
((week == champ_week) & (year == 2015) & (team_1 %in% c("SAM", "ANDREW")) & (team_2 %in% c("SAM", "ANDREW"))) ~ 1,
((week == champ_week) & (year == 2016) & (team_1 %in% c("CHRIS", "MATT")) & (team_2 %in% c("CHRIS", "MATT"))) ~ 1,
((week == champ_week) & (year == 2017) & (team_1 %in% c("STEVE", "DYLAN")) & (team_2 %in% c("STEVE", "DYLAN"))) ~ 1,
((week == champ_week) & (year == 2018) & (team_1 %in% c("CHRIS", "NATHAN")) & (team_2 %in% c("CHRIS", "NATHAN"))) ~ 1,
((week == champ_week) & (year == 2019) & (team_1 %in% c("MATT", "STEVE")) & (team_2 %in% c("MATT", "STEVE"))) ~ 1,
((week == champ_week) & (year == 2020) & (team_1 %in% c("ANDREW", "NICK")) & (team_2 %in% c("NICK", "ANDREW"))) ~ 1,
((week == champ_week) & (year == 2021) & (team_1 %in% c("NICK", "CHRIS")) & (team_2 %in% c("NICK", "CHRIS"))) ~ 1,
)) %>%
mutate(match_56 = case_when(
((week == champ_week) & (year == 2014) & (team_1 %in% c("DREW", "CHRIS")) & (team_2 %in% c("DREW", "CHRIS"))) ~ 1,
((week == champ_week) & (year == 2015) & (team_1 %in% c("DYLAN", "MATT")) & (team_2 %in% c("DYLAN", "MATT"))) ~ 1,
((week == champ_week) & (year == 2016) & (team_1 %in% c("CARLEN", "STEVE")) & (team_2 %in% c("CARLEN", "STEVE"))) ~ 1,
((week == champ_week) & (year == 2017) & (team_1 %in% c("KYLE", "CHRIS")) & (team_2 %in% c("KYLE", "CHRIS"))) ~ 1,
((week == champ_week) & (year == 2018) & (team_1 %in% c("MATT", "KYLE")) & (team_2 %in% c("MATT", "KYLE"))) ~ 1,
((week == champ_week) & (year == 2019) & (team_1 %in% c("ANDREW", "CHRIS")) & (team_2 %in% c("ANDREW", "CHRIS"))) ~ 1,
((week == champ_week) & (year == 2020) & (team_1 %in% c("NATHAN", "SAM")) & (team_2 %in% c("NATHAN", "SAM"))) ~ 1,
((week == champ_week) & (year == 2021) & (team_1 %in% c("JASON", "SAM")) & (team_2 %in% c("JASON", "SAM"))) ~ 1,
)) %>%
mutate(match_78 = case_when(
((week == champ_week) & (year == 2015) & (team_1 %in% c("NICK", "CARLEN")) & (team_2 %in% c("NICK", "CARLEN"))) ~ 1,
((week == champ_week) & (year == 2016) & (team_1 %in% c("SAM", "DYLAN")) & (team_2 %in% c("SAM", "DYLAN"))) ~ 1,
((week == champ_week) & (year == 2017) & (team_1 %in% c("NICK", "ANDREW")) & (team_2 %in% c("NICK", "ANDREW"))) ~ 1,
((week == champ_week) & (year == 2018) & (team_1 %in% c("ANDREW", "CARLEN")) & (team_2 %in% c("ANDREW", "CARLEN"))) ~ 1,
((week == champ_week) & (year == 2019) & (team_1 %in% c("SAM", "NATHAN")) & (team_2 %in% c("SAM", "NATHAN"))) ~ 1,
((week == champ_week) & (year == 2020) & (team_1 %in% c("CARLEN", "STEVE")) & (team_2 %in% c("CARLEN", "STEVE"))) ~ 1,
((week == champ_week) & (year == 2021) & (team_1 %in% c("DYLAN", "KYLE")) & (team_2 %in% c("DYLAN", "KYLE"))) ~ 1,
)) %>%
mutate(match_12 = case_when(
((week == champ_week) & (year == 2014) & (team_1 %in% c("MATT", "ANDREW")) & (team_2 %in% c("MATT", "ANDREW"))) ~ 1,
((week == champ_week) & (year == 2015) & (team_1 %in% c("KYLE", "STEVE")) & (team_2 %in% c("KYLE", "STEVE"))) ~ 1,
((week == champ_week) & (year == 2016) & (team_1 %in% c("ANDREW", "NICK")) & (team_2 %in% c("ANDREW", "NICK"))) ~ 1,
((week == champ_week) & (year == 2017) & (team_1 %in% c("CARLEN", "MATT")) & (team_2 %in% c("CARLEN", "MATT"))) ~ 1,
((week == champ_week) & (year == 2018) & (team_1 %in% c("SAM", "STEVE")) & (team_2 %in% c("SAM", "STEVE"))) ~ 1,
((week == champ_week) & (year == 2019) & (team_1 %in% c("CARLEN", "NICK")) & (team_2 %in% c("CARLEN", "NICK"))) ~ 1,
((week == champ_week) & (year == 2020) & (team_1 %in% c("CHRIS", "KYLE")) & (team_2 %in% c("CHRIS", "KYLE"))) ~ 1,
((week == champ_week) & (year == 2021) & (team_1 %in% c("ANDREW", "STEVE")) & (team_2 %in% c("ANDREW", "STEVE"))) ~ 1,
)) %>%
mutate(match_sacko = case_when(
((week == champ_week) & (year == 2014) & (team_1 %in% c("NATHAN", "KYLE")) & (team_2 %in% c("NATHAN", "KYLE"))) ~ 1,
((week == champ_week) & (year == 2015) & (team_1 %in% c("NATHAN", "CHRIS")) & (team_2 %in% c("NATHAN", "CHRIS"))) ~ 1,
((week == champ_week) & (year == 2016) & (team_1 %in% c("NATHAN", "KYLE")) & (team_2 %in% c("NATHAN", "KYLE"))) ~ 1,
((week == champ_week) & (year == 2017) & (team_1 %in% c("NATHAN", "SAM")) & (team_2 %in% c("NATHAN", "SAM"))) ~ 1,
((week == champ_week) & (year == 2018) & (team_1 %in% c("DYLAN", "NICK")) & (team_2 %in% c("DYLAN", "NICK"))) ~ 1,
((week == champ_week) & (year == 2019) & (team_1 %in% c("KYLE", "DYLAN")) & (team_2 %in% c("KYLE", "DYLAN"))) ~ 1,
((week == champ_week) & (year == 2020) & (team_1 %in% c("MATT", "DYLAN")) & (team_2 %in% c("MATT", "DYLAN"))) ~ 1,
((week == champ_week) & (year == 2021) & (team_1 %in% c("MATT", "NOAH")) & (team_2 %in% c("MATT", "NOAH"))) ~ 1,
))