I have a data set that looks like this:
data 
ID               Application                 Admission
1                FALSE                       FALSE
2                FALSE                       FALSE
2                TRUE                        FALSE
3                FALSE                       FALSE
3                TRUE                        FALSE
3                TRUE                        TRUE
I want to somehow group the rows by ID and then remove everything but the last row for that ID. It would look like this:
ID               Application                 Admission
1                FALSE                       FALSE
2                TRUE                        FALSE
3                TRUE                        TRUE
I'm fairly new to coding so I just went one by one and removed rows individually. Is there a better way to do this? Thank you.
 
     
    