I have a table scoresByMinute which shows the scoreline whenever a goal is scored at soccer
matchID minute scoreline
1 24 10
1 53 20
1 81 21
2 7 01 ...
I wish to create a new table which shows the scoreline for each minute of each 90 minute game
matchID minute scoreline
1 1 00
1 2 00
...
1 23 00
1 24 01
1 25 01
...
1 89 21
1 90 21
2 1 00
etc
How should I go about this?
v.type = 'P'filter gives a subset of the table with a sequence of uniquenumbervalues from 0 till 2047. So, I'm just using the table (specifically the subset) as a tally table.