Convenience function to make the initial groupMembers animal list
makeGroupMembers(numGp, currentGroups, candidates, ped, harem, minAge)
Initial groupMembers list
integer value indicating the number of groups that should be formed from the list of IDs. Default is 1.
list of character vectors of IDs of animals currently assigned to the group. Defaults to character(0) assuming no groups are existent.
character vector of IDs of the animals available for use in the group.
dataframe that is the Pedigree
. It contains pedigree
information including the IDs listed in candidates
.
logical variable when set to TRUE
, the formed groups
have a single male at least minAge
old.
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.