View source: R/expandAmatrix.R
| expandAmatrix | R Documentation | 
Expand a current A matrix with a new pedigree. The parents in the new pedigree should also be in the A matrix.
expandAmatrix(newPedigree = NULL, A = NULL, returnAll = TRUE)
| newPedigree | pedigree data name (3-column way format). Unknown value should be equal 0. | 
| A | numerator relationship matrix output from Amatrix function. | 
| returnAll | if TRUE returns old A with new A, if FALSE returns only new A | 
Matrix with the Relationship between the individuals.
Rodrigo R Amadeu, rramadeu@gmail.com
data(ped.sol)
ped.initial = ped.sol[1:1120,]
ped.new = ped.sol[-c(1:1120),]
#Computing additive relationship matrix:
A = Amatrix(ped.initial, ploidy=2)
Anew = expandAmatrix(ped.new, A)
#Comparing with one-step building..
Afull = Amatrix(ped.sol, ploidy=2)
test = Anew-Afull
which(test!=0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.