Arranging grouped observations to be the same count for two ID's

Hi, please provide a reproducible example, called a reprex. In this case it's a just snippet to add ID1 and ID2 to iris, since that's built in, plus the code you've tried.