If I understand correctly, the vote function accomplishes creating a ballot for each voter.
Next, tabulate function counts the number of votes received by each candidate for the first choice. This will help eliminate the candidate/candidates with the least votes as the first choice.
Reply
https://edstem.org/us/courses/176/discussion/2208110[learn_press_profile]