
addGroupOfUnusedAnimals adds a group to the saved groups if needed
Source:R/addGroupOfUnusedAnimals.R
addGroupOfUnusedAnimals.RdaddGroupOfUnusedAnimals adds a group to the saved groups if needed
Arguments
- savedGroupMembers
list of groups of animals in the form of a vector of animal Ids.
- candidates
character vector of IDs of the animals available for use in the group.
- ped
dataframe that is the
Pedigree. It contains pedigree information including the IDs listed incandidates.- minAge
integer value indicating the minimum age to consider in group formation. Pairwise kinships involving an animal of this age or younger will be ignored. Default is 1 year.
- harem
logical variable when set to
TRUE, the formed groups have a single male at leastminAgeold.