I have a dataset in long format with a column titled subject and wave.
Each subject has up to two rows (one for wave 1 and one for wave 2). If they are missing a wave