1

I have a dataset that contains a number of different of Subject IDs. They are each part of a specific Chain and were assigned a Generation number in an experiment. I have the mean StructureScore (how much a language is structured) for each participant, but I also want to see what the mean StructureScore is for each generation.

For example, Generation 7 of Chain E exists 4 times, so I want to have the mean score for those 4 participants. I'm not sure how to make a new dataset of just those mean StructureScores? Any suggestion is appreciated.

enter image description here

Laura
  • 33
  • 4

1 Answers1

0

Check this out!

This type of operation is exactly what aggregate was designed for:

Mean per group in a data.frame

Mark Hollis
  • 151
  • 1
  • 13