Supplementary Data - R code from Does the winner–loser effect determine male mating success?

R code used for data analysis