Hi R community,
I wonder if any of you could offer any suggestions to help with my data?
I'm looking at social relationships in monkeys and half calculated for all social partners, whether these are kin or non-kin. What I now want to do is calculate how many kin partners each individual monkey had in each year.
I have monkey ID, year, group (group the monkey lives in) and kinship(kin or non-kin) as my factors.
So i'm trying to calculate how many kin partners an individual has in each year. The group variable is probably irrelevant here, because they only have social relationships with members of their own group.
Any help would be kindly appreciated.