wasn't pairing fractions correctly, fixed ddply function to get appropriate pairings