This question has a couple of parts :
- I have a subset of the data where events happen in my data and I would like to create snapshot of the rows around those events, specifically I would like to get the 5 rows before the events and the 4 rows after.
- Then put the different snapshots into a matrix in so I can compare the different events to one another. Any help with either part would be greatly appreciated.