Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using this dataset I created, NFLStandings, how would I make a table that displays the min, max, and average of each statistic (margin of victory,
Using this dataset I created, "NFLStandings", how would I make a table that displays the min, max, and average of each statistic (margin of victory, strength of schedule, etc.) for each year 2015-2019? This is in R. Please help
I started by combining team (city) and team name together because there was no reason to have two seperate columns. Then I narrowed down the data to only showing 2015 to 2019 because I got into football around 2015 and I want to see which teams were the best and worst during that time period. Then I put the teams in order of decreasing wins, so the teams with the most wins were shown at the top for each year. Lastly, for this project, I wanted to focus on margin of victory, strength of schedule, simple rating, and offensive and defensive rankings, so I left out the points for, against, and differential, becausee margin of victory calculates those statstics into it. NFLStandings %>% unite(team, team name, sep = iI") %>% filter ( year >2014)%>% arrange(year, desc(wins)) %% select(team, year, wins, loss, margin_of_victory, strength_of_schedule, simple_rating, offensive_ranking, defensive_ranking, playoffs, sb_winner) NFLStandings %>% headStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started