Trying to simulate football games in R. I want to simulate let's say 100 times and then calculate mean, max, min of the following rows for each team. Sim_number is my simulation number and will vary 1-100. Is there an easy way to do this?
Team_1 | Team_2 | |
---|---|---|
Sim_number | 1.00000 | 1.00000 |
Score | 24.00000 | 7.00000 |
Pass Yards | 164.53623 | 233.0000 |