I am cleaning up data from a research study. Each subject has a unique study identification number (studyid). They had varying number of visits from 1 to 3. This is what the