Group_by function not working for long data
I have long form data which I am not able to turn into short form yet (it is too large and complicated at this stage). My data contains information on hospital episodes, with each line corresponding to a new episode.