This is just a sample dataframe.
I want to obtain the last two Events of each id_num and make another data frame consisting of the id_num and last two Events as Event1 and Event2 respectively.
How can it be done?
This is just a sample dataframe.
I want to obtain the last two Events of each id_num and make another data frame consisting of the id_num and last two Events as Event1 and Event2 respectively.
How can it be done?