MCMCglmm (version 2.28)

sm2asreml: Converts sparseMatrix to asreml's giv format

Description

Converts sparseMatrix to asreml's giv format: row-ordered, upper triangle sparse matrix.

Usage

sm2asreml(A=NULL, rownames=NULL)

Arguments

A

sparseMatrix

rownames

rownames of A

Value

data.frame: if A was formed from a pedigree equivalent to giv format returned by asreml.Ainverse

See Also

inverseA

Examples

Run this code
# NOT RUN {
data(bird.families)
A<-inverseA(bird.families)
Aasreml<-sm2asreml(A$Ainv, A$node.names)
# }

Run the code above in your browser using DataLab