I have a data set of 30 cases. The variable values change weekly but I need to compare two of the cases (teams) each week so for example, I might want to see the difference between case 1 and case 10, or case 2 and case 30 but these two case comparisons will also change each week (e.g., number of games played, etc.) Can I do this with instructions in R or do I have to change the set up of the data set. The place number and name are always the same.
New to R and was unable to get anything to work.
Data set looks like this:
Place Teamname Games Wins Losses PCwins Gamesaway Gameshome
1 team1 5 2 3 .40 2 3
2 team2 6 5 1 .83 3 3
etc.
DrMM is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.