I have some NCAA basketball game-by-game final score data. Each row represents 1 game. But I would like to also have the "inverse" of each record. Meaning if drake is the "team" in row 1, then air force would be the "team" in row 2 with drake being the opponent, etc.
My data looks like:
game_id team opp team_score opp_score score_diff favored_by line
1 drake air force 81 53 28 11 125
2 cincinatti usf 71 74 -3 8.5 132
But I only have one record for each game. I would like for each game_id to have 2 records. One also containing the "inverse".
# Desired output:
game_id team opp team_score opp_score score_diff favored_by line
1 drake air force 81 53 28 11 125
1 air force drake 53 81 -28 -11 125
2 cincinatti usf 71 74 -3 8.5 132
2 usf cincinatti 74 71 3 -8.5 132