a
, the number of an individual's alleles that are rare in
each simulation.R/calcA.R
calcA.Rd
Part of Genetic Value Analysis
calcA(alleles, threshold = 1, byID = FALSE)
alleles | a matrix with id, parent, V1 ... Vn providing the alleles an animal received during each simulation. The first 2 columns provide the animal ID and the parent the allele came from. Remaining columns provide alleles. |
---|---|
threshold | an integer indicating the maximum number of copies of an allele that can be present in the population for it to be considered rare. Default is 1. |
byID | logical variable of length 1 that is passed through to
eventually be used by |
A matrix with named rows indicating the number of unique alleles an animal had during each round of simulation (indicated in columns).
# \donttest{ library(nprcgenekeepr) rare <- calcA(nprcgenekeepr::ped1Alleles, threshold = 3, byID = FALSE) # }